Skip to content

Commit 2fb854a

Browse files
committed
Delete Thread.exclusive definition
It was removed in Ruby 3.0.
1 parent 59fdbc1 commit 2fb854a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

core/thread.rbs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -829,13 +829,6 @@ class Thread < Object
829829
#
830830
def self.each_caller_location: () { (Backtrace::Location) -> void } -> nil
831831

832-
# Wraps the block in a single, VM-global
833-
# [Thread::Mutex\#synchronize](https://docs.ruby-lang.org/en/master/Thread/Mutex.html#method-i-synchronize)
834-
# , returning the value of the block. A thread executing inside the
835-
# exclusive section will only block other threads which also use the
836-
# [::exclusive](Thread.downloaded.ruby_doc#method-c-exclusive) mechanism.
837-
def self.exclusive: () { () -> untyped } -> untyped
838-
839832
# <!--
840833
# rdoc-file=thread.c
841834
# - Thread.exit -> thread

0 commit comments

Comments
 (0)