Advanced
Ruby
Q87 / 100
What is the purpose of "Fiber" in Ruby?
Correct! Well done.
Incorrect.
The correct answer is A) A Fiber is a lightweight thread of execution that can be manually paused (yield) and resumed (resume), providing cooperative concurrency primitives often used to implement enumerators and coroutines
A
Correct Answer
A Fiber is a lightweight thread of execution that can be manually paused (yield) and resumed (resume), providing cooperative concurrency primitives often used to implement enumerators and coroutines
Explanation
Fibers provide manual, cooperative context-switching within a single thread; Enumerator and many async libraries are built on top of Fibers.
Progress
87/100