This function
Waits for a State Machine TActor to emit one or more events (in order).
A State Machine TActor
A function accepting the emitted event types
Waits for a State Machine TActor to emit one or more events (in order).
A State Machine TActor
One or more emitted event types (the type field of
the EventObject) to wait for (in order)
Promise resolving with the matching events in their entirety
(assuming they all occurred in order)
This function just returns itself.