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