Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyFibers and the schedulerSingle-choice MCQ

A fiber is created as non-blocking via `Fiber.schedule` while a Fiber scheduler is active. It performs a `sleep 1`. Compared to calling `sleep 1` with no scheduler set, what changes about the thread's behavior?

Fiber.set_scheduler(MyScheduler.new) Fiber.schedule { sleep 1; puts "a" } Fiber.schedule { sleep 1; puts "b" }