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)
Runs an XState
Actoruntil it receives one or more events (in order).