Table of Contents

Delegate AsyncStrategy<TIn, TOut>.Predicate

Namespace
PatternKit.Behavioral.Strategy
Assembly
PatternKit.Core.dll

Asynchronous predicate delegate that decides whether a branch can handle the input.

public delegate ValueTask<bool> AsyncStrategy<TIn, TOut>.Predicate(TIn input, CancellationToken ct)

Parameters

input TIn

The input value to evaluate.

ct CancellationToken

A cancellation token.

Returns

ValueTask<bool>

A ValueTask<TResult> producing true if the branch should handle the input; otherwise false.

Extension Methods