Skip to content

Add specs for the Fiber scheduler's io_wait hook - #1395

Open
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:io-wait-fiber-scheduler
Open

Add specs for the Fiber scheduler's io_wait hook#1395
sampokuokkanen wants to merge 1 commit into
ruby:masterfrom
sampokuokkanen:io-wait-fiber-scheduler

Conversation

@sampokuokkanen

@sampokuokkanen sampokuokkanen commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

LoggingScheduler already records io_wait, but only Kernel#sleep and the Fiber specs used it, so nothing checked that IO#wait, #wait_readable and #wait_writable reach the hook at all, nor what events mask and timeout they hand it.

Should the specs here be under core/io/ though? IO#wait is in core now.

LoggingScheduler already records io_wait, but only Kernel#sleep and the Fiber
specs used it, so nothing checked that IO#wait, #wait_readable and
#wait_writable reach the hook at all, nor what events mask and timeout they
hand it.
sampokuokkanen added a commit to sampokuokkanen/jruby that referenced this pull request Sep 9, 2026
The three IO#wait spec files were identical to ruby/spec's, so this is only
what is proposed upstream: the "with a Fiber scheduler" contexts from ruby/spec#1395
and the events mask example from ruby/spec#1396. They sit here until the next
full sync picks them up.

Upstream: ruby/spec#1395
Upstream: ruby/spec#1396
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant