Skip to content

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

instance method · added in Ruby 3.4

Fiber::Scheduler#blocking_operation_wait

blocking_operation_wait(work)

Invoked by Ruby’s core methods to run a blocking operation in a non-blocking way.

Minimal suggested implementation is:

Example
def blocking_operation_wait(work)
  Thread.new(&work).join
end

Ruby version changes

  1. 3.4
See also #block #close #address_resolve #fiber also in 4.1 · 4.0