Invokes the given action with the set result of the task when the task succeeded.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Task<T> OnResult<T>( this Task<T> task, Action<T> action, DispatcherBase actionTarget ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function OnResult(Of T) ( _ task As Task(Of T), _ action As Action(Of T), _ actionTarget As DispatcherBase _ ) As Task(Of T) |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename T> static Task<T>^ OnResult( Task<T>^ task, Action<T>^ action, DispatcherBase^ actionTarget ) |
Parameters
- task
- Type: UnityThreading..::..Task<(Of <(<'T>)>)>
- action
- Type: System..::..Action<(Of <(<'T>)>)>
The action to perform.
- actionTarget
- Type: UnityThreading..::..DispatcherBase
Type Parameters
- T