Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/thread.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@ class Thread < Object
# Give the thread scheduler a hint to pass execution to another thread. A
# running thread may or may not switch, it depends on OS and processor.
#
def self.pass: () -> untyped
def self.pass: () -> nil

# <!--
# rdoc-file=thread.c
Expand Down
4 changes: 4 additions & 0 deletions test/stdlib/Thread_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def test_each_caller_location
def test_list
assert_send_type "() -> Array[Thread]", Thread, :list
end

def test_pass
assert_send_type "() -> nil", Thread, :pass
end
end

class ThreadTest < Test::Unit::TestCase
Expand Down
Loading