Class: Fibre::Rack::FiberPool
- Inherits:
-
Object
- Object
- Fibre::Rack::FiberPool
- Defined in:
- lib/fibre/rack/fiber_pool.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) {|Fibre.pool| ... } ⇒ FiberPool
constructor
A new instance of FiberPool.
Constructor Details
#initialize(app, options = {}) {|Fibre.pool| ... } ⇒ FiberPool
Returns a new instance of FiberPool.
4 5 6 7 8 |
# File 'lib/fibre/rack/fiber_pool.rb', line 4 def initialize(app, ={}) @app = app yield Fibre.pool if block_given? @rescue_exception = [:rescue_exception] || (->(env, ex) { [500, {}, ["Internal Server Error"]] }) end |