ValueTaskUtility Class
Provides utility methods to deal with ValueTask objects.
public static class ValueTaskUtilityMethods
| Name | Description |
|---|---|
| WhenAll(IEnumerable<ValueTask>) | Creates a task that will complete when all of the ValueTask objects in an enumerable collection have completed. |
| WhenAll(ValueTask[]) | Creates a task that will complete when all of the ValueTask objects in an enumerable collection have completed. |
WhenAll overloads
WhenAll(IEnumerable<ValueTask>)
Creates a task that will complete when all of the ValueTask objects in an enumerable collection have completed.
public static ValueTask WhenAll(IEnumerable<ValueTask> valueTasks)Parameters
valueTasksIEnumerable<ValueTask>- The
ValueTasks to wait on for completion.
Returns
ValueTask A ValueTask that represents the completion of all of the supplied ValueTasks.
Exceptions
ArgumentNullExceptionvalueTasksisnull.
WhenAll(ValueTask[])
Creates a task that will complete when all of the ValueTask objects in an enumerable collection have completed.
Parameters
valueTasksValueTask[]- The
ValueTasks to wait on for completion.
Returns
ValueTask A ValueTask that represents the completion of all of the supplied ValueTasks.
Exceptions
ArgumentNullExceptionvalueTasksisnull.