Delegate AsyncStrategy<TIn, TOut>.Handler
- Namespace
- PatternKit.Behavioral.Strategy
- Assembly
- PatternKit.Core.dll
Asynchronous handler delegate that produces the result for a matching branch.
public delegate ValueTask<TOut> AsyncStrategy<TIn, TOut>.Handler(TIn input, CancellationToken ct)
Parameters
inputTInThe input value to handle.
ctCancellationTokenA cancellation token.
Returns
- ValueTask<TOut>
A ValueTask<TResult> producing the result for the branch.
- Extension Methods