Waits for the completion of all tasks in the Enumerable.

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

Syntax

C#
public static void WaitAll(
	this IEnumerable<Task> tasks
)
Visual Basic
<ExtensionAttribute> _
Public Shared Sub WaitAll ( _
	tasks As IEnumerable(Of Task) _
)
Visual C++
[ExtensionAttribute]
public:
static void WaitAll(
	IEnumerable<Task^>^ tasks
)

Parameters

tasks
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'Task>)>)>

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