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