[ruby/io-wait] Alias value or join to take in old Ruby
https://github.com/ruby/io-wait/commit/cf84aea70d
This commit is contained in:
parent
ce459c1df3
commit
6609ba0514
@ -7,6 +7,10 @@ class TestIOWaitInRactor < Test::Unit::TestCase
|
||||
ext = "/io/wait.#{RbConfig::CONFIG['DLEXT']}"
|
||||
path = $".find {|path| path.end_with?(ext)}
|
||||
assert_in_out_err(%W[-r#{path}], <<-"end;", ["true"], [])
|
||||
class Ractor
|
||||
alias value take
|
||||
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||
|
||||
$VERBOSE = nil
|
||||
r = Ractor.new do
|
||||
$stdout.equal?($stdout.wait_writable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user