class Celluloid::AsyncCall

Asynchronous calls don't wait for a response

Public Instance Methods

dispatch(obj) click to toggle source
Calls superclass method Celluloid::Call#dispatch
# File lib/celluloid/calls.rb, line 123
def dispatch(obj)
  Thread.current[:celluloid_chain_id] = Celluloid.uuid
  super(obj)
rescue AbortError => ex
  # Swallow aborted async calls, as they indicate the sender made a mistake
  Logger.debug("#{obj.class}: async call `#@method` aborted!\n#{Logger.format_exception(ex.cause)}")
ensure
  Thread.current[:celluloid_chain_id] = nil
end