Path: | lib/rainbows/event_machine/try_defer.rb |
Last Update: | Sat Feb 23 07:12:54 +0000 2019 |
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.