File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -2327,22 +2327,6 @@ def initialize(a)
2327
2327
}.tally.sort
2328
2328
}
2329
2329
2330
- # Ractor#take will warn for compatibility.
2331
- # This method will be removed after 2025/09/01
2332
- assert_equal "2" , %q{
2333
- raise "remove Ractor#take and this test" if Time.now > Time.new(2025, 9, 2)
2334
- $VERBOSE = true
2335
- r = Ractor.new{42}
2336
- $msg = []
2337
- def Warning.warn(msg)
2338
- $msg << msg
2339
- end
2340
- r.take
2341
- r.take
2342
- raise unless $msg.all?{/Ractor#take/ =~ it}
2343
- $msg.size
2344
- }
2345
-
2346
2330
# Cause lots of inline CC misses.
2347
2331
assert_equal 'ok' , <<~'RUBY'
2348
2332
class A; def test; 1 + 1; end; end
Original file line number Diff line number Diff line change @@ -575,12 +575,6 @@ def value
575
575
__builtin_ractor_value
576
576
end
577
577
578
- # keep it for compatibility
579
- def take
580
- Kernel . warn ( "Ractor#take was deprecated and use Ractor#value instead. This method will be removed after the end of Aug 2025" , uplevel : 0 )
581
- self . value
582
- end
583
-
584
578
#
585
579
# call-seq:
586
580
# ractor.monitor(port) -> self
You can’t perform that action at this time.
0 commit comments