Skip to content

DurableTask.WhenAllCompleted(IReadOnlyList<DurableTask<TResult>>)

WhenAllCompleted(IReadOnlyList<DurableTask<TResult>>)

static
View source
public static DurableTask<ScheduledTask<TResult>[]> WhenAllCompleted<TResult>(IReadOnlyList<DurableTask<TResult>> tasks)
Creates a durable task which schedules every input task, waits until each is terminal, and returns their handles, in input order.

Parameters

tasksIReadOnlyList<DurableTask<TResult>>
The input tasks, which are captured when this method is called.

Returns

A combinator which, awaited within a durable execution, runs as part of that execution and returns each input's handle at its input index. Each handle has observed its terminal response, so ScheduledTask, ScheduledTask, and Orleans.Durable.Tasks.ScheduledTask.TryGetResult inspect it.