Interface IAsyncProcess<TState, TInput, TOutput>
An IProcess<TState, TInput, TOutput> whose step may await: the shape a behavior is lifted to before it is bound to an event stream, so a synchronous process and an asynchronous one (e.g. an executor calling a venue) run through one pipeline. The worker devkits bind it to CloudEvents.
public interface IAsyncProcess<TState, TInput, TOutput>
Type Parameters
TStateThe process's internal state.
TInputThe input observation.
TOutputThe output emitted at this step.
Properties
Initial
The initial state.
TState Initial { get; }
Property Value
- TState
Methods
StepAsync(TState, TInput)
Step the process forward by one input observation.
ValueTask<(TState NextState, TOutput Output)> StepAsync(TState state, TInput input)
Parameters
stateTStateCurrent state.
inputTInputObservation to apply.