Skip to content

Commit 24f5e1d

Browse files
authored
Merge pull request #327 from ko1/ractor_value
Use `Ractor#value` as `Ractor#take` is removed
2 parents 07facd4 + 8d73360 commit 24f5e1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/bigdecimal/test_ractor.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@ def test_ractor_shareable
1313
assert_separately([], "#{<<~"begin;"}\n#{<<~'end;'}")
1414
begin;
1515
$VERBOSE = nil
16+
class Ractor
17+
alias value take unless method_defined? :value
18+
end
19+
1620
require "bigdecimal"
1721
r = Ractor.new BigDecimal(Math::PI, Float::DIG+1) do |pi|
1822
BigDecimal('2.0')*pi
1923
end
20-
assert_equal(2*Math::PI, r.take)
24+
assert_equal(2*Math::PI, r.value)
2125
end;
2226
end
2327
end

0 commit comments

Comments
 (0)