[ruby-core:102841] [Ruby master Bug#17659] Ractor: can't call io/wait methods
From:
naruse@...
Date:
2021-03-13 08:56:42 UTC
List:
ruby-core #102841
Issue #17659 has been updated by naruse (Yui NARUSE).
Backport changed from 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE
ruby_3_0 e050dd53230cb354e816415f8a937901f79ec395 merged revision(s) f6d5de8f33fe715d939e3e77b8ef73d88bcd6c9f.
----------------------------------------
Bug #17659: Ractor: can't call io/wait methods
https://bugs.ruby-lang.org/issues/17659#change-90899
* Author: chucke (Tiago Cardoso)
* Status: Closed
* Priority: Normal
* ruby -v: 3.0.0
* Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONE
----------------------------------------
It seems that I can use IO.select inside a ractor, but not call IO.wait_writable, which seems odd.
```ruby
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)
```
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>