The given Action will be performed when the task succeeds.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static Task<T> WhenSucceeded<T>( this Task<T> task, Action<Task<T>> action, DispatcherBase target ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function WhenSucceeded(Of T) ( _ task As Task(Of T), _ action As Action(Of Task(Of T)), _ target As DispatcherBase _ ) As Task(Of T) |
Visual C++ |
---|
[ExtensionAttribute] public: generic<typename T> static Task<T>^ WhenSucceeded( Task<T>^ task, Action<Task<T>^>^ action, DispatcherBase^ target ) |
Parameters
- task
- Type: UnityThreading..::..Task<(Of <(<'T>)>)>
- action
- Type: System..::..Action<(Of <(<'Task<(Of <(<'T>)>)>>)>)>
The action to perform.
- target
- Type: UnityThreading..::..DispatcherBase
The DispatcherBase to perform the action on.
Type Parameters
- T