Method WhenAll
WhenAll(params Task[])
Waits until all the specified tasks have completed.
public static Task WhenAll(params Task[] tasks)
Parameters
tasksTask[]The tasks to wait on for completion.
Returns
WhenAll(IEnumerable<Task>)
Waits until all the specified tasks have completed.
public static Task WhenAll(IEnumerable<Task> tasks)
Parameters
tasksIEnumerable<Task>The tasks to wait on for completion.
Returns
WhenAll<TResult>(params Task<TResult>[])
Waits until all the specified tasks have completed.
public static Task<TResult[]> WhenAll<TResult>(params Task<TResult>[] tasks)
Parameters
tasksTask<TResult>[]The tasks to wait on for completion.
Returns
- Task<TResult[]>
Type Parameters
TResult
WhenAll<TResult>(IEnumerable<Task<TResult>>)
Waits until all the specified tasks have completed.
public static Task<TResult[]> WhenAll<TResult>(IEnumerable<Task<TResult>> tasks)
Parameters
tasksIEnumerable<Task<TResult>>The tasks to wait on for completion.
Returns
- Task<TResult[]>
Type Parameters
TResult