WhenAny Method

Task.WhenAny Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Creates a task that will complete when any of the supplied tasks have completed.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member WhenAny<TResult>(IEnumerable<Task<TResult>>) Creates a task that will complete when any of the supplied tasks have completed.
Public method Static member WhenAny(IEnumerable<Task>) Creates a task that will complete when any of the supplied tasks have completed.
Public method Static member WhenAny(Task[]) Creates a task that will complete when any of the supplied tasks have completed.
Public method Static member WhenAny<TResult>(Task<TResult>[]) Creates a task that will complete when any of the supplied tasks have completed.
Top

Show:
© 2017 Microsoft