Module: Rack::App::Streamer::Scheduler
Instance Method Summary collapse
Instance Method Details
#by_env(env) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/rack/app/streamer/scheduler.rb', line 6 def by_env(env) if env['async.callback'] && defined?(::EventMachine) ::EventMachine else ::Rack::App::Streamer::Scheduler::Null end end |