Skip to content

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

instance method

Fiber::Scheduler#close

close

Called when the current thread exits. The scheduler is expected to implement this method in order to allow all waiting fibers to finalize their execution.

The suggested pattern is to implement the main event loop in the close method.

See also #block #fiber #address_resolve #io_pread also in 4.1 · 4.0 · 3.4 · 3.2