module

ActiveSupport::Notifications

Class methods

clear
Source
instrument(name : String, payload : Hash(String, ActiveSupport::Any) = {} of String => ActiveSupport::Any, &)
Source
instrument(name : String)
Source
publish(event : Event)
Source
subscribe(pattern : String | Nil = nil, &callback : Event -> _) : String

subscribe("sql.query") { |event| ... } or subscribe { |event| ... } (all events). Returns the subscriber object for unsubscribe.

Source
subscribers
Source
unsubscribe(subscriber : String)
Source

Nested types