Converts the Func into an inactive Task.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Task<T> AsTask<T>( this Func<T> that ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function AsTask(Of T) ( _ that As Func(Of T) _ ) As Task(Of T) |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename T> static Task<T>^ AsTask( Func<T>^ that ) |
Parameters
- that
- Type: System..::..Func<(Of <(<'T>)>)>
Type Parameters
- T