Skip to main content

subscribe

Function subscribe 

Source
pub fn subscribe(event_name: String) -> Receiver<Event>
Expand description

Subscribe to a named event.

Returns a receiver that will get a copy of every event published with that name.