Project

General

Profile

Actions

Feature #17286

open

`Ractor.new` should accept `move: true`

Added by marcandre (Marc-Andre Lafortune) 8 months ago. Updated 8 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:100551]

Description

Another surprise when writing my backport is that Ractor.new does not accept move: keyword argument.

Ractor.new(val, move: true) { |data| ... }
# equivalent to
Ractor.new { data = Ractor.receive; ... }.tap { |r| r.send(val, move: true) }
Actions

Also available in: Atom PDF