Synchronization
Represents task synchronization and combination methods.
Gets task result synchronously.
Gets task result synchronously.
public static Task<bool> WaitAsync(this Task task, TimeSpan timeout, CancellationToken token = default)
Waits for task completion asynchronously.
Creates a task that will complete when all of the passed tasks have completed.
public static Task<ValueTuple<T1, T2, T3>> WhenAll<T1, T2, T3>(Task<T1> task1, Task<T2> task2, Task<T3> task3)
Creates a task that will complete when all of the passed tasks have completed.
public static Task<ValueTuple<T1, T2, T3, T4>> WhenAll<T1, T2, T3, T4>(Task<T1> task1, Task<T2> task2, Task<T3> task3, Task<T4> task4)
Creates a task that will complete when all of the passed tasks have completed.
public static Task<ValueTuple<T1, T2, T3, T4, T5>> WhenAll<T1, T2, T3, T4, T5>(Task<T1> task1, Task<T2> task2, Task<T3> task3, Task<T4> task4, Task<T5> task5)
Creates a task that will complete when all of the passed tasks have completed.