Skip to content

Replace now-deprecated wait_timeout#9300

Merged
headius merged 1 commit into
jruby:masterfrom
headius:replace_wait_timeout
Mar 11, 2026
Merged

Replace now-deprecated wait_timeout#9300
headius merged 1 commit into
jruby:masterfrom
headius:replace_wait_timeout

Conversation

@headius

@headius headius commented Mar 11, 2026

Copy link
Copy Markdown
Member

BlockingTask has been deprecated since 9.0.0.0, but the SleepTask subclass and its consumer RubyThread.wait_timeout were left undeprecated. In order to provide a migration path, this patch introduces a new blessed version of wait_timeout that no longer uses the deprecated BlockingTask.

See ruby-concurrency/concurrent-ruby#1100.

concurrent-ruby will eventually need to migrate to the blessed API, but until JRuby 10.0 is EOL we must continue to support the older method.

BlockingTask has been deprecated since 9.0.0.0, but the SleepTask
subclass and its consumer RubyThread.wait_timeout were left
undeprecated. In order to provide a migration path, this patch
introduces a new blessed version of wait_timeout that no longer
uses the deprecated BlockingTask.

See ruby-concurrency/concurrent-ruby#1100.

concurrent-ruby will eventually need to migrate to the blessed API,
but until JRuby 10.0 is EOL we must continue to support the older
method.
@headius headius force-pushed the replace_wait_timeout branch from 1effde8 to 24f8918 Compare March 11, 2026 21:22
@headius headius merged commit 883ce7b into jruby:master Mar 11, 2026
77 of 83 checks passed
@headius headius deleted the replace_wait_timeout branch March 11, 2026 21:35
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