Skip to content

End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.3