Project

General

Profile

Actions

Bug #17659

closed

Ractor: can't call io/wait methods

Added by chucke (Tiago Cardoso) over 3 years ago. Updated over 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 #1

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Blocked by Bug #17672: Ractor stdio does not belong to the ractor added
Actions #2

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Status changed from Open to Closed
Actions #3

Updated by nobu (Nobuyoshi Nakada) over 3 years ago

  • Backport changed from 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN to 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONTNEED, 3.0: REQUIRED

Updated by naruse (Yui NARUSE) over 3 years ago

  • 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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0