[This is preliminary documentation and is subject to change.]
Namespace: NFXAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static Task AsCompletedTask(
this Action act
)
public static Task AsCompletedTask(
this Action act
)
<ExtensionAttribute>
Public Shared Function AsCompletedTask (
act As Action
) As Task
<ExtensionAttribute>
Public Shared Function AsCompletedTask (
act As Action
) As Task
public:
[ExtensionAttribute]
static Task^ AsCompletedTask(
Action^ act
)
public:
[ExtensionAttribute]
static Task^ AsCompletedTask(
Action^ act
)
static member AsCompletedTask :
act : Action -> Task
static member AsCompletedTask :
act : Action -> Task
Return Value
Type:
TaskUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Action. 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).
Because there is no non-generic
TaskCompletionSource TResult version
generic version typed by
Object is used (
Task TResult inherits from
Task)