Skip to content

Fix Thread.handle_interrupt - #3162

Merged
ksss merged 1 commit into
ruby:masterfrom
ksss:thread-handle_interrupt
Sep 24, 2026
Merged

ksss merged 1 commit into
ruby:masterfrom
ksss:thread-handle_interrupt

Conversation

@ksss

@ksss ksss commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

I revised it so that it doesn't contradict the rdoc.

Comment thread core/thread.rbs
# ExceptionClass, as kill/terminate interrupts are not handled by `Exception`.
#
def self.handle_interrupt: (untyped hash) -> untyped
def self.handle_interrupt: [T] (Hash[Class, :immediate | :on_blocking | :never] hash) { (nil) -> T } -> T

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the implementation is rb_yield(Qnil), the test fails without (nil).

@ksss
ksss added this pull request to the merge queue Sep 24, 2026
Merged via the queue into ruby:master with commit 6026e99 Sep 24, 2026
24 checks passed
@ksss
ksss deleted the thread-handle_interrupt branch September 24, 2026 12:52
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