Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Fiber.scheduler

Fiber.scheduler → obj or nil

Fiber scheduler, set in the current thread with Fiber.set_scheduler. If the scheduler is nil (which is the default), non-blocking fibers behavior is the same as blocking. (see “Non-blocking fibers” section in class docs for details about the scheduler concept).

Ruby version changes

  1. 3.0
See also .schedule .set_scheduler .new .yield also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1