[This is preliminary documentation and is subject to change.]
Returns task completed from a synchronous functor
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static Task<T> AsCompletedTask<T>(
this Func<T> func
)
public static Task<T> AsCompletedTask<T>(
this Func<T> func
)
<ExtensionAttribute>
Public Shared Function AsCompletedTask(Of T) (
func As Func(Of T)
) As Task(Of T)
<ExtensionAttribute>
Public Shared Function AsCompletedTask(Of T) (
func As Func(Of T)
) As Task(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static Task<T>^ AsCompletedTask(
Func<T>^ func
)
public:
[ExtensionAttribute]
generic<typename T>
static Task<T>^ AsCompletedTask(
Func<T>^ func
)
static member AsCompletedTask :
func : Func<'T> -> Task<'T>
static member AsCompletedTask :
func : Func<'T> -> Task<'T>
- T
Return Value
Type:
Task T Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Func T . When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).