Project

General

Profile

Actions

Feature #22247

open

Add Ractor.movable?

Feature #22247: Add Ractor.movable?

Added by rkh (Konstantin Haase) 1 day ago. Updated 1 day ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:126397]

Description

Some objects cannot be moved (like unshareable lambdas).

It would be great to have a method to check whether an object is movable, similar to Ractor.shareable?.

Not 100% sure what it should return for shareable objects, but I would lean towards true as well (despite them not being moved), as they can be passed to Ractor.send(object, move: true).

Updated by rkh (Konstantin Haase) 1 day ago Actions #1

  • Tracker changed from Bug to Feature
  • ruby -v deleted (ruby 4.1.0dev (2026-08-15T07:21:53Z master d1c079751b) +PRISM [arm64-darwin25])
  • Backport deleted (3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN)
Actions

Also available in: PDF Atom