Actions
Bug #17659
closedRactor: can't call io/wait methods
Bug #17659:
Ractor: can't call io/wait methods
Description
It seems that I can use IO.select inside a ractor, but not call IO.wait_writable, which seems odd.
require "io/wait"
ractors = []
1.times do
ractors << Ractor.new do
$stdout.wait_writable(2) # this fails
# but this works
# IO.select(nil, [$stdout], nil, 2)
$stdout.puts "wow"
end
end
ractors.map(&:take)
Actions