ActionDispatch::Executor Ruby on Rails 5.1.2 Class ActionDispatch::Executor < Object actionpack/lib/action_dispatch/middleware/executor.rb Methods C call N new Class Public methods new(app, executor) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/executor.rb, line 5 def initialize(app, executor) @app, @executor = app, executor end Instance Public methods call(env) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/executor.rb, line 9 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