Table of Contents

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

T1

Input type accepted by the operator.

T2

Input type expected by the wrapped executor.

T3

Output type returned by the wrapped executor.

T4

Output 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

input T1

Input value for the operator.

executor IAsyncExecutor<T2, T3>

Wrapped executor that can be invoked by the operator.

token CancellationToken

Cancellation token for the asynchronous operation.

Returns

ValueTask<T4>

Result produced by the operator.