WhenEach Method
- Namespace
- SatorImaging.UnityFundamentals
WhenEach<T>(ICollection<T>, CancellationToken)
public static WhenEachEnumerator<T> WhenEach<T>(this ICollection<T> tasks, CancellationToken cancellationToken = default) where T : Task
Parameters
tasks
ICollection<T>cancellationToken
CancellationToken
Returns
Type Parameters
T
WhenEach(IEnumerable<Task>, CancellationToken)
public static WhenEachEnumerator<Task> WhenEach(this IEnumerable<Task> tasks, CancellationToken cancellationToken = default)
Parameters
tasks
IEnumerable<Task>cancellationToken
CancellationToken