@epikodelabs/streamix / src/public-api / UnfoldStep
Interface: UnfoldStep<State, Value>
Defined in: projects/libraries/streamix/src/lib/factories/unfold.ts:9
One value produced by unfold, together with the transition to the next state.
The transition is a function deliberately: it is not invoked until the consumer requests another value. Return null from the step function to end.
Type Parameters
State
State
Value
Value
Properties
value
value:
Value
Defined in: projects/libraries/streamix/src/lib/factories/unfold.ts:10
next
next: (
signal) =>MaybePromise<State>
Defined in: projects/libraries/streamix/src/lib/factories/unfold.ts:11
Parameters
signal
Returns
MaybePromise<State>