Class AsyncExecutionOperator<T1, T2, T3, T4>
- Namespace
- Executables.Operations
- Assembly
- executables.dll
Represents an asynchronous operator that can transform both input and output around another executor.
public abstract class AsyncExecutionOperator<T1, T2, T3, T4>
Type Parameters
T1Input type accepted by the operator.
T2Input type expected by the wrapped executor.
T3Output type returned by the wrapped executor.
T4Output type returned by the operator.
- Inheritance
-
AsyncExecutionOperator<T1, T2, T3, T4>
- Derived
- Inherited Members
Methods
Invoke(T1, IAsyncExecutor<T2, T3>, CancellationToken)
Invokes the operator and optionally delegates execution to the supplied asynchronous executor.
public abstract ValueTask<T4> Invoke(T1 input, IAsyncExecutor<T2, T3> executor, CancellationToken token = default)
Parameters
inputT1Input value for the operator.
executorIAsyncExecutor<T2, T3>Wrapped executor that can be invoked by the operator.
tokenCancellationTokenCancellation token for the asynchronous operation.
Returns
- ValueTask<T4>
Result produced by the operator.