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 OnResult( this Task task, Action<Object> action, DispatcherBase target ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function OnResult ( _ task As Task, _ action As Action(Of Object), _ target As DispatcherBase _ ) As Task |
Visual C++ |
---|
[ExtensionAttribute] public: static Task^ OnResult( Task^ task, Action<Object^>^ action, DispatcherBase^ target ) |
Parameters
- task
- Type: UnityThreading..::..Task
- action
- Type: System..::..Action<(Of <(<'Object>)>)>
The action to perform.
- target
- Type: UnityThreading..::..DispatcherBase
The DispatcherBase to perform the action on.