Starts the given Action when any Task in the Enumerable has ended.
Namespace: UnityThreadingAssembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static IEnumerable<Task> ContinueWhenAnyEnded( this IEnumerable<Task> tasks, Action<Task> action ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function ContinueWhenAnyEnded ( _ tasks As IEnumerable(Of Task), _ action As Action(Of Task) _ ) As IEnumerable(Of Task) |
Visual C++ |
---|
[ExtensionAttribute] public: static IEnumerable<Task^>^ ContinueWhenAnyEnded( IEnumerable<Task^>^ tasks, Action<Task^>^ action ) |
Parameters
- tasks
- Type: System.Collections.Generic..::..IEnumerable<(Of <(<'Task>)>)>
- action
- Type: System..::..Action<(Of <(<'Task>)>)>
The action to start.