Back to Developer Roadmap

Fibers

src/data/roadmaps/ruby/content/fibers@_ruCDzzaSuoE_8tRacTeK.md

4.0959 B
Original Source

Fibers

Fibers are a lightweight concurrency construct that allows you to create code blocks that can be paused and resumed. They provide a way to implement cooperative multitasking within a single thread, enabling you to manage multiple tasks without the overhead of creating and managing multiple threads or processes. Fibers are useful for scenarios where you need fine-grained control over the execution flow and want to avoid the complexities of thread synchronization.

Visit the following resources to learn more: