A fiber is a lightweight thread which uses cooperative rather than preemptive multitasking. It is very similar to and often confused with a [coroutine]. Use this tag for questions relating to the [ruby] feature, otherwise prefer to use [coroutine].
A fiber is a lightweight thread which uses cooperative rather than preemptive multitasking. It is very similar to and often confused with a coroutine.
In Ruby, fibers are primitives for implementing light weight cooperative concurrency. It appeared in Ruby 1.9.
Related tags
multithreadingcoroutinegreen-threadslightweight-processeslwt