Class: NtiEventBus::Dispatchers::Inline

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

Overview

Runs the handler synchronously, in-process. Useful for tests or hosts without a job backend.

Instance Method Summary collapse

Instance Method Details

#call(handler_name, payload) ⇒ Object



16
17
18
# File 'lib/nti_event_bus/dispatchers.rb', line 16

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