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

Syntax

public static Task<IEnumerable<TSource>> ParallelWhereAsync<TSource>(this IEnumerable<TSource> items, Func<TSource, Task<bool>> asyncPredicate, CancellationToken cancellationToken = default(CancellationToken))

Type Parameters

Name Description
TSource

Parameters

Name Type Description
items IEnumerable<TSource>
asyncPredicate Func<TSource, Task<bool>>
cancellationToken CancellationToken

Return Value

Type Description
Task<IEnumerable<TSource>>