Skip to content
instance method · added in Ruby 4.0

Fiber::Scheduler#fiber_interrupt

fiber_interrupt(fiber, exception)

Invoked by Ruby’s core methods to notify the scheduler that the blocked fiber should be interrupted with an exception. For example, IO#close uses this method to interrupt fibers that are performing blocking IO operations.

Ruby version changes

  1. 4.0
See also #fiber #io_close #close #io_pread also in 4.1