Editare

Partajați prin


Task.WhenEach Method

Definition

Overloads

WhenEach(IEnumerable<Task>)
WhenEach(ReadOnlySpan<Task>)
WhenEach(Task[])
WhenEach<TResult>(IEnumerable<Task<TResult>>)
WhenEach<TResult>(ReadOnlySpan<Task<TResult>>)
WhenEach<TResult>(Task<TResult>[])

WhenEach(IEnumerable<Task>)

public:
 static System::Collections::Generic::IAsyncEnumerable<System::Threading::Tasks::Task ^> ^ WhenEach(System::Collections::Generic::IEnumerable<System::Threading::Tasks::Task ^> ^ tasks);
public static System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task> WhenEach (System.Collections.Generic.IEnumerable<System.Threading.Tasks.Task> tasks);
static member WhenEach : seq<System.Threading.Tasks.Task> -> System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task>
Public Shared Function WhenEach (tasks As IEnumerable(Of Task)) As IAsyncEnumerable(Of Task)

Parameters

tasks
IEnumerable<Task>

Returns

Applies to

WhenEach(ReadOnlySpan<Task>)

public:
 static System::Collections::Generic::IAsyncEnumerable<System::Threading::Tasks::Task ^> ^ WhenEach(ReadOnlySpan<System::Threading::Tasks::Task ^> tasks);
public static System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task> WhenEach (ReadOnlySpan<System.Threading.Tasks.Task> tasks);
static member WhenEach : ReadOnlySpan<System.Threading.Tasks.Task> -> System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task>
Public Shared Function WhenEach (tasks As ReadOnlySpan(Of Task)) As IAsyncEnumerable(Of Task)

Parameters

Returns

Applies to

WhenEach(Task[])

public:
 static System::Collections::Generic::IAsyncEnumerable<System::Threading::Tasks::Task ^> ^ WhenEach(... cli::array <System::Threading::Tasks::Task ^> ^ tasks);
public static System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task> WhenEach (params System.Threading.Tasks.Task[] tasks);
static member WhenEach : System.Threading.Tasks.Task[] -> System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task>
Public Shared Function WhenEach (ParamArray tasks As Task()) As IAsyncEnumerable(Of Task)

Parameters

tasks
Task[]

Returns

Applies to

WhenEach<TResult>(IEnumerable<Task<TResult>>)

public:
generic <typename TResult>
 static System::Collections::Generic::IAsyncEnumerable<System::Threading::Tasks::Task<TResult> ^> ^ WhenEach(System::Collections::Generic::IEnumerable<System::Threading::Tasks::Task<TResult> ^> ^ tasks);
public static System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task<TResult>> WhenEach<TResult> (System.Collections.Generic.IEnumerable<System.Threading.Tasks.Task<TResult>> tasks);
static member WhenEach : seq<System.Threading.Tasks.Task<'Result>> -> System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task<'Result>>
Public Shared Function WhenEach(Of TResult) (tasks As IEnumerable(Of Task(Of TResult))) As IAsyncEnumerable(Of Task(Of TResult))

Type Parameters

TResult

Parameters

tasks
IEnumerable<Task<TResult>>

Returns

Applies to

WhenEach<TResult>(ReadOnlySpan<Task<TResult>>)

public:
generic <typename TResult>
 static System::Collections::Generic::IAsyncEnumerable<System::Threading::Tasks::Task<TResult> ^> ^ WhenEach(ReadOnlySpan<System::Threading::Tasks::Task<TResult> ^> tasks);
public static System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task<TResult>> WhenEach<TResult> (ReadOnlySpan<System.Threading.Tasks.Task<TResult>> tasks);
static member WhenEach : ReadOnlySpan<System.Threading.Tasks.Task<'Result>> -> System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task<'Result>>
Public Shared Function WhenEach(Of TResult) (tasks As ReadOnlySpan(Of Task(Of TResult))) As IAsyncEnumerable(Of Task(Of TResult))

Type Parameters

TResult

Parameters

tasks
ReadOnlySpan<Task<TResult>>

Returns

Applies to

WhenEach<TResult>(Task<TResult>[])

public:
generic <typename TResult>
 static System::Collections::Generic::IAsyncEnumerable<System::Threading::Tasks::Task<TResult> ^> ^ WhenEach(... cli::array <System::Threading::Tasks::Task<TResult> ^> ^ tasks);
public static System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task<TResult>> WhenEach<TResult> (params System.Threading.Tasks.Task<TResult>[] tasks);
static member WhenEach : System.Threading.Tasks.Task<'Result>[] -> System.Collections.Generic.IAsyncEnumerable<System.Threading.Tasks.Task<'Result>>
Public Shared Function WhenEach(Of TResult) (ParamArray tasks As Task(Of TResult)()) As IAsyncEnumerable(Of Task(Of TResult))

Type Parameters

TResult

Parameters

tasks
Task<TResult>[]

Returns

Applies to