Class: Restify::Adapter::EM

Inherits:
Object
  • Object
show all
Defined in:
lib/restify/adapter.rb

Defined Under Namespace

Classes: Connection

Instance Method Summary collapse

Instance Method Details

#call(request) ⇒ Object



101
102
103
104
105
106
107
# File 'lib/restify/adapter.rb', line 101

def call(request)
  Obligation.create do |writer|
    next_tick do
      Connection.open(request.uri).call(request, writer)
    end
  end
end