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
inputTInThe input value to evaluate.
ctCancellationTokenA cancellation token.
Returns
- ValueTask<bool>
A ValueTask<TResult> producing true if the branch should handle the input; otherwise false.
- Extension Methods