FilterAsync(IEnumerable<IDocument>, Config<bool>, IExecutionContext) Method
Filters the documents.
Namespace
Statiq.Common
Containing Type
ConfigExtensions

Syntax

public static IAsyncEnumerable<IDocument> FilterAsync(this IEnumerable<IDocument> documents, Config<bool> predicate, IExecutionContext context)

Parameters

Name Type Description
documents IEnumerable<IDocument> The documents to filter.
predicate Config<bool> The predicate.
context IExecutionContext The current execution context.

Return Value

Type Description
IAsyncEnumerable<IDocument> Filtered documents where the provided predicate is true.