pub fn wait_for_event(
    event_bus: Arc<Mutex<EventBus>>,
    subscribed_event: Event
) -> impl Future<Output = Event>
Expand description

Returns a future that completes when a specified event is published on an EventBus.