Array of event types to wait for
Shared state checking options
Promise that resolves when all events have occurred or state is ready
Wait for a single event with state checking (convenience overload)
Single event type to wait for
State checking options
Promise that resolves when event occurs or state is ready
Wait for multiple events with shared state checking Checks global state once to see if all conditions are already met