From 59fdbc1ac292fefcf218a2e6d72b14117eb1f824 Mon Sep 17 00:00:00 2001 From: Petrik Date: Mon, 5 May 2025 19:17:35 +0200 Subject: [PATCH 1/2] Replace reference with official documentation ruby-doc.org isn't official documentation. This also adds the `Thread` namespace and links to the latest Ruby version. --- core/thread.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/thread.rbs b/core/thread.rbs index b5d428baf..34a2436ef 100644 --- a/core/thread.rbs +++ b/core/thread.rbs @@ -830,7 +830,7 @@ class Thread < Object def self.each_caller_location: () { (Backtrace::Location) -> void } -> nil # Wraps the block in a single, VM-global - # [Mutex\#synchronize](https://ruby-doc.org/core-2.6.3/Mutex.html#method-i-synchronize) + # [Thread::Mutex\#synchronize](https://docs.ruby-lang.org/en/master/Thread/Mutex.html#method-i-synchronize) # , returning the value of the block. A thread executing inside the # exclusive section will only block other threads which also use the # [::exclusive](Thread.downloaded.ruby_doc#method-c-exclusive) mechanism. From 2fb854acd23f516bdd60242db52a1aee39d9bee4 Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Fri, 9 May 2025 14:28:10 +0900 Subject: [PATCH 2/2] Delete `Thread.exclusive` definition It was removed in Ruby 3.0. --- core/thread.rbs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/core/thread.rbs b/core/thread.rbs index 34a2436ef..222d59293 100644 --- a/core/thread.rbs +++ b/core/thread.rbs @@ -829,13 +829,6 @@ class Thread < Object # def self.each_caller_location: () { (Backtrace::Location) -> void } -> nil - # Wraps the block in a single, VM-global - # [Thread::Mutex\#synchronize](https://docs.ruby-lang.org/en/master/Thread/Mutex.html#method-i-synchronize) - # , returning the value of the block. A thread executing inside the - # exclusive section will only block other threads which also use the - # [::exclusive](Thread.downloaded.ruby_doc#method-c-exclusive) mechanism. - def self.exclusive: () { () -> untyped } -> untyped - #