C-DEngine 5.105

TheCommonUtils..::..TaskWhenAny Method

Creates a task that completes when any of the provided tasks completes.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static Task<Task> TaskWhenAny(
	IEnumerable<Task> tasks
)
Public Shared Function TaskWhenAny ( _
	tasks As IEnumerable(Of Task) _
) As Task(Of Task)
public:
static Task<Task^>^ TaskWhenAny(
	IEnumerable<Task^>^ tasks
)

Parameters

tasks
Type: IEnumerable<(Of <(<'Task>)>)>
A collection with one or more tasks.

Return Value

The task that completed.