Ruby Programming/Reference/Objects/IO/Fiber

This is the current revision of this page, as edited by Adrignola (discuss | contribs) at 18:38, 21 June 2010 (+category). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A Fiber is a unit of concurrency (basically a manually controlled thread). It is a new construct in 1.9

1.8 basically used green threads similar, to fibers, but would pre-empt them, which 1.9 does not do.

See its description.

Several useful things have been built using fibers, like neverblock, the revactor gem, et al.