ParallelForEachAsync<TSource>(IEnumerable<TSource>, Func<TSource, Task>, CancellationToken) Method
Namespace
Statiq.Common
Containing Type
ParallelAsyncExtensions

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<TSource>
asyncFunc Func<TSource, Task>
cancellationToken CancellationToken

Return Value

Type Description
Task