Class: Adhearsion::Events::Worker

Inherits:
Object
  • Object
show all
Includes:
Celluloid
Defined in:
lib/adhearsion/events.rb

Instance Method Summary collapse

Methods included from Celluloid

logger

Instance Method Details

#work(type, object) ⇒ Object


33
34
35
36
37
38
# File 'lib/adhearsion/events.rb', line 33

def work(type, object)
  Handler.instance.trigger_handler type, object
rescue => e
  raise if type == :exception
  async.work :exception, e
end