WhenAny(IReadOnlyList<DurableTask>)
static
public static DurableTask<int> WhenAny(IReadOnlyList<DurableTask> tasks)Creates a durable task which returns the input index of the first input task to complete.
Parameters
tasksIReadOnlyList<DurableTask>- The input tasks.
Returns
A combinator which, awaited within a durable execution, runs as part of that execution.
Exceptions
System.ArgumentOutOfRangeExceptiontasksis empty.
