Project

General

Profile

Actions

Bug #17659

closed

Ractor: can't call io/wait methods

Added by chucke (Tiago Cardoso) about 3 years ago. Updated about 3 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:102618]

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)

Related issues 1 (0 open1 closed)

Blocked by Ruby master - Bug #17672: Ractor stdio does not belong to the ractorClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0