Skip to main content

subscribe

Function
This function is defined in the bus module.
Subscribe to events on the global bus

Signature

Parameters

EventType
required
No description available.
F
required
No description available.

Returns

usize where F: Fn(&Event) + Send + Sync + 'static,
The result of the operation.

Uses

  • get_event_bus
  • subscribe

Source

View on GitHub

praisonai/src/bus/mod.rs at line 409