FromDerivedAsync<TBase, TDerived>(Task<TDerived>) Method
Namespace
Statiq.Common
Containing Type
TaskExtensions

Syntax

public static Task<TBase> FromDerivedAsync<TBase, TDerived>(this Task<TDerived> task) 
    where TDerived : TBase

Type Parameters

Name Description
TBase
TDerived

Parameters

Name Type Description
task Task<TDerived>

Return Value

Type Description
Task<TBase>