class Celluloid::AsyncCall - celluloid-0.16.0 Documentation

# 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 120
    def dispatch(obj)
      CallChain.current_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
      CallChain.current_id = nil
    end