Skip to content

Support nil in return value. - #3159

Open
ksss wants to merge 1 commit into
ruby:masterfrom
ksss:thread-native_thread_id
Open

ksss wants to merge 1 commit into
ruby:masterfrom
ksss:thread-native_thread_id

Conversation

@ksss

@ksss ksss commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Thread#native_thread_id may return nil.
This behavior is also guaranteed in ruby/spec.

https://github.com/ruby/spec/blob/af6351a2b55f0d1566f7fcb0cc8b732c273e0c5b/core/thread/native_thread_id_spec.rb#L9-L13

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