Task.WhenAny method (1 of 4)

Creates a Task that will complete when any task in the specified enumerable collection have completed.

public static Task<Task> WhenAny(IEnumerable<Task> tasks)
parameter description
tasks The tasks to wait for completion.

See Also


Task.WhenAny method (2 of 4)

Creates a Task that will complete when any task in the specified array have completed.

public static Task<Task> WhenAny(params Task[] tasks)
parameter description
tasks The tasks to wait for completion.

See Also


Task.WhenAny<TResult> method (3 of 4)

Creates a Task that will complete when any task in the specified enumerable collection have completed.

public static Task<Task<TResult>> WhenAny<TResult>(IEnumerable<Task<TResult>> tasks)
parameter description
tasks The tasks to wait for completion.

See Also


Task.WhenAny<TResult> method (4 of 4)

Creates a Task that will complete when any task in the specified array have completed.

public static Task<Task<TResult>> WhenAny<TResult>(params Task<TResult>[] tasks)
parameter description
tasks The tasks to wait for completion.

See Also