Class: NtiEventBus::Dispatchers::ActiveJob

Inherits:
Object
  • Object
show all
Defined in:
lib/nti_event_bus/dispatchers.rb

Overview

Default. Enqueues handler execution asynchronously via ActiveJob (Solid Queue, Sidekiq, ...).

Instance Method Summary collapse

Instance Method Details

#call(handler_name, payload) ⇒ Object



9
10
11
# File 'lib/nti_event_bus/dispatchers.rb', line 9

def call(handler_name, payload)
  NtiEventBus::HandleEventJob.perform_later(handler_name, payload)
end