- Namespace
- Statiq
.Common - Containing Type
- Parallel
Async Extensions
Syntax
public static Task ParallelForEachAsync<TSource>(this IEnumerable<TSource> items, Func<TSource, Task> asyncFunc, CancellationToken cancellationToken = default(CancellationToken))
Type Parameters
Name | Description |
---|---|
TSource |
Parameters
Name | Type | Description |
---|---|---|
items | IEnumerable |
|
asyncFunc | Func |
|
cancellationToken | CancellationToken |
Return Value
Type | Description |
---|---|
Task |