Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(event: Event)
Expand description

Publish an event to every interested subscriber.

Dispatch is synchronous and best-effort: a subscriber that needs to do real work (writing to a database, shipping over the network) is expected to queue it, so instrumentation never slows down a request.