Class | Rainbows::EventMachine::TryDefer |
In: |
lib/rainbows/event_machine/try_defer.rb
|
Parent: | Object |
Middleware that will run the app dispatch in a separate thread. This middleware is automatically loaded by Rainbows! when using EventMachine and if the app responds to the +deferred?+ method.
Use EM.threadpool_size in your \Rainbows! config file to control the number of threads used by EventMachine.
See brainspl.at/articles/2008/04/18/deferred-requests-with-merb-ebb-and-thin for more information.