lib/rage/application.rb in rage-rb-0.1.1 vs lib/rage/application.rb in rage-rb-0.1.2
- old
+ new
@@ -1,9 +1,11 @@
# frozen_string_literal: true
class Rage::Application
def initialize(router)
- Fiber.set_scheduler(Rage::FiberScheduler.new)
+ Iodine.on_state(:on_start) do
+ Fiber.set_scheduler(Rage::FiberScheduler.new)
+ end
@router = router
end
def call(env)
fiber = Fiber.schedule do