Class: Restify::Adapter::EM
- Inherits:
-
Object
- Object
- Restify::Adapter::EM
- Defined in:
- lib/restify/adapter/em.rb
Defined Under Namespace
Classes: Connection
Instance Method Summary collapse
Instance Method Details
#call(request) ⇒ Object
108 109 110 111 112 113 114 |
# File 'lib/restify/adapter/em.rb', line 108 def call(request) Promise.create do |writer| next_tick do Connection.open(request.uri).call(request, writer) end end end |