event_bus v0.2.0 EventBus
Simple event bus implementation.
Link to this section Summary
Functions
Send event to all listeners
Subscribe to the bus
List the subscribers to the bus
Unsubscribe from the bus
Link to this section Functions
Send event to all listeners.
Examples
EventBus.notify({:webhook_received, %{"message" => "Hi all!"}})
:ok