diff options
-rw-r--r-- | bootstraptest/test_ractor.rb | 16 | ||||
-rw-r--r-- | ractor.rb | 6 |
2 files changed, 0 insertions, 22 deletions
diff --git a/bootstraptest/test_ractor.rb b/bootstraptest/test_ractor.rb index fcf14259e8..b8cde62344 100644 --- a/bootstraptest/test_ractor.rb +++ b/bootstraptest/test_ractor.rb @@ -2327,22 +2327,6 @@ assert_equal '[["Only the successor ractor can take a value", 9], ["ok", 2]]', % }.tally.sort } -# Ractor#take will warn for compatibility. -# This method will be removed after 2025/09/01 -assert_equal "2", %q{ - raise "remove Ractor#take and this test" if Time.now > Time.new(2025, 9, 2) - $VERBOSE = true - r = Ractor.new{42} - $msg = [] - def Warning.warn(msg) - $msg << msg - end - r.take - r.take - raise unless $msg.all?{/Ractor#take/ =~ it} - $msg.size -} - # Cause lots of inline CC misses. assert_equal 'ok', <<~'RUBY' class A; def test; 1 + 1; end; end @@ -575,12 +575,6 @@ class Ractor __builtin_ractor_value end - # keep it for compatibility - def take - Kernel.warn("Ractor#take was deprecated and use Ractor#value instead. This method will be removed after the end of Aug 2025", uplevel: 0) - self.value - end - # # call-seq: # ractor.monitor(port) -> self |