StateF | baconjs (original) (raw)

State machine function used in withStateMachine.

Type parameters

Hierarchy

Callable

Parameters

current state of the state machine.

input event to react on

Returns [State, Event<Out>[]]

a tuple containing the next state and an array of events to be emitted.