Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

class method

Fiber.blocking

Fiber.blocking{|fiber| ...} → result

Forces the fiber to be blocking for the duration of the block. Returns the result of the block.

See the “Non-blocking fibers” section in class docs for details.

See also .blocking? #blocking? .[]= .[] also in 4.1 · 4.0 · 3.4 · 3.2