Interface IAsyncExecutor<TIn, TOut>
- Namespace
- Executables
- Assembly
- executables.dll
Represents an asynchronous executor that processes input and returns a result.
public interface IAsyncExecutor<in TIn, TOut>
Type Parameters
TInInput type.
TOutOutput type.
Methods
Execute(TIn, CancellationToken)
Executes the operation for the specified input value.
ValueTask<TOut> Execute(TIn input, CancellationToken token = default)
Parameters
inputTInInput value.
tokenCancellationTokenCancellation token.
Returns
- ValueTask<TOut>
Asynchronous execution result.