Sha256: e84f283a31342e46773f5164e7edfa933558874ad1cce7f022a336e4b31abec9

Contents?: true

Size: 261 Bytes

Versions: 16

Compression:

Stored size: 261 Bytes

Contents

module Async
  class Callback
    attr_reader :response

    def call(*args)
      status, headers, body = *args.flatten.to_a
      @response = Rack::Response.new(body, status, headers)
      EventMachine.stop if EventMachine.reactor_running?
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sitehub-0.5.0.alpha12 spec/support/async/callback.rb
sitehub-0.4.10 spec/support/async/callback.rb
sitehub-0.5.0.alpha11 spec/support/async/callback.rb
sitehub-0.5.0.alpha10 spec/support/async/callback.rb
sitehub-0.5.0.alpha8 spec/support/async/callback.rb
sitehub-0.5.0.alpha7 spec/support/async/callback.rb
sitehub-0.5.0.alpha6 spec/support/async/callback.rb
sitehub-0.5.0.alpha5 spec/support/async/callback.rb
sitehub-0.5.0.alpha4 spec/support/async/callback.rb
sitehub-0.5.0.alpha3 spec/support/async/callback.rb
sitehub-0.5.0.alpha2 spec/support/async/callback.rb
sitehub-0.4.9 spec/support/async/callback.rb
sitehub-0.4.8 spec/support/async/callback.rb
sitehub-0.4.7 spec/support/async/callback.rb
sitehub-0.4.6 spec/support/async/callback.rb
sitehub-0.4.3 spec/support/async/callback.rb