class Async::Scheduler
def initialize(parent = nil, selector: nil)
@parameter parent [Node | Nil] The parent node to use for task hierarchy.
@public Since `stable-v1`.
Create a new scheduler.
def initialize(parent = nil, selector: nil) super(parent) @selector = selector || ::IO::Event::Selector.new(Fiber.current) @interrupted = false @blocked = 0 @busy_time = 0.0 @idle_time = 0.0 @timers = ::IO::Event::Timers.new end