Starts the Func as async Task on the given TaskDistributor.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Task<T> RunAsync<T>( this Func<T> that, TaskDistributor target ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function RunAsync(Of T) ( _ that As Func(Of T), _ target As TaskDistributor _ ) As Task(Of T) |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename T> static Task<T>^ RunAsync( Func<T>^ that, TaskDistributor^ target ) |
Parameters
- that
- Type: System..::..Func<(Of <(<'T>)>)>
- target
- Type: UnityThreading..::..TaskDistributor
The TaskDistributor instance on which the operation should perform.
Type Parameters
- T