diff options
author | Koichi Sasada <ko1@atdot.net> | 2025-09-01 16:59:09 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2025-09-01 17:34:41 +0900 |
commit | f9bffff3d4b45d4c6fed42f13d556c520f3cfd67 (patch) | |
tree | 8d25eb85a2795c3184c929f31a899759d4ef8867 | |
parent | ed0ffcdc80c41b3b1adacc7135ddf7880380c6a3 (diff) |
remove `Ractor#take`
[Feature #21262]
-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 |