From: marcandre-ruby-core@... Date: 2020-11-08T03:01:00+00:00 Subject: [ruby-core:100742] [Ruby master Feature#17286] `Ractor.new` should accept `move: true` Issue #17286 has been updated by marcandre (Marc-Andre Lafortune). I'd say let's start with a simple version and see what use-cases come up. Seems already possible to mix and match anyways... Open the Ractor with one mode and `yield` the other parameters using the other mode. ---------------------------------------- Feature #17286: `Ractor.new` should accept `move: true` https://bugs.ruby-lang.org/issues/17286#change-88390 * Author: marcandre (Marc-Andre Lafortune) * Status: Open * Priority: Normal ---------------------------------------- Another surprise when writing my backport is that `Ractor.new` does not accept `move:` keyword argument. ```ruby Ractor.new(val, move: true) { |data| ... } # equivalent to Ractor.new { data = Ractor.receive; ... }.tap { |r| r.send(val, move: true) } ``` -- https://bugs.ruby-lang.org/ Unsubscribe: