EvaluateAsync(JqExpression, IAsyncEnumerable, IReadOnlyDictionary<String, JsonElement>?, CancellationToken) Method

Definition

Namespace JQLite
Assembly JQLite.dll

Evaluates expression on each value of input in turn (a JSON Lines stream, for example), yielding the results of each; the results of one input are computed before they are yielded. Each value is evaluated alone, as by Evaluate(JsonElement, IReadOnlyDictionary<String, JsonElement>?): halt ends only the evaluation of its value.

public static IAsyncEnumerable<JsonElement> EvaluateAsync(JqExpression expression, IAsyncEnumerable<JsonElement> input, IReadOnlyDictionary<string, JsonElement>? variables = null, [EnumeratorCancellation] CancellationToken cancellationToken = default(CancellationToken))

Parameters

expression
JqExpression

The parsed expression.

input
IAsyncEnumerable<JsonElement>

The input values.

variables
IReadOnlyDictionary<String, JsonElement>

Host variables for every evaluation.

cancellationToken
CancellationToken

Stops reading input.

Returns