Skip to content
Permalink
3132fa6b7d
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (17 sloc) 408 Bytes
require "rack/body_proxy"
module ActionDispatch
class Executor
def initialize(app, executor)
@app, @executor = app, executor
end
def call(env)
state = @executor.run!
begin
response = @app.call(env)
returned = response << ::Rack::BodyProxy.new(response.pop) { state.complete! }
ensure
state.complete! unless returned
end
end
end
end
You can’t perform that action at this time.