class InstanceImpl<I,O,S>
The default AsyncReducer.Impl implementation.
Implements: AsyncReducer.Instance<I,O>
Type parameters
| Name | Description |
|---|---|
| I | the input element type |
| O | the output element type |
| S | the reducer state type |
Properties
halted
undocumented
haltedindex
undocumented
indexreducer
undocumented
reducerDefinition
readonly reducer: AsyncReducer.Impl<I, O, S>;
Methods
getOutput
undocumented
getOutputhalt
Method that, when called, halts the reducer instance so that it will no longer receive values.
haltnext
Sends a new value into the reducer instance.
nextDefinition
next(value: I): MaybePromise<void>;
Parameters
| Name | Type | Description |
|---|---|---|
value | I | the next input value |