Starts the given Action when all Tasks in the Enumerable have ended.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static IEnumerable<Task> ContinueWhenAllEnded(
	this IEnumerable<Task> tasks,
	Action<IEnumerable<Task>> action
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function ContinueWhenAllEnded ( _
	tasks As IEnumerable(Of Task), _
	action As Action(Of IEnumerable(Of Task)) _
) As IEnumerable(Of Task)
Visual C++
[ExtensionAttribute]
public:
static IEnumerable<Task^>^ ContinueWhenAllEnded(
	IEnumerable<Task^>^ tasks, 
	Action<IEnumerable<Task^>^>^ action
)

Parameters

tasks
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'Task>)>)>
action
Type: System..::..Action<(Of <(<'IEnumerable<(Of <(<'Task>)>)>>)>)>
The action to start.

Return Value

This Enumerable of Tasks.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'Task>)>)>. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also