Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions bootstraptest/test_ractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2327,22 +2327,6 @@ def initialize(a)
}.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
Expand Down
6 changes: 0 additions & 6 deletions ractor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -575,12 +575,6 @@ def value
__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
Expand Down