The type of actor
The type of eventTypes
An XState Actor
that can receive events
One or more event names (the type
field) to wait for
(in order)
A Promise
fulfilling with the matching events (assuming they all
occurred in order)
Returns a function which runs an actor until it sends one or more events (in order).
The type of actor
An XState Actor
that can receive events
A function which runs an actor until it sends one or more events (in order)
Returns itself.
A function which returns itself
Runs an XState
Actor
until it receives one or more events (in order).