From: "rkh (Konstantin Haase) via ruby-core" Date: 2026-08-15T12:47:06+00:00 Subject: [ruby-core:126397] [Ruby Bug#22247] Add Ractor.movable? Issue #22247 has been reported by rkh (Konstantin Haase). ---------------------------------------- Bug #22247: Add Ractor.movable? https://bugs.ruby-lang.org/issues/22247 * Author: rkh (Konstantin Haase) * Status: Open * ruby -v: ruby 4.1.0dev (2026-08-15T07:21:53Z master d1c079751b) +PRISM [arm64-darwin25] * Backport: 3.3: UNKNOWN, 3.4: UNKNOWN, 4.0: UNKNOWN ---------------------------------------- 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)`. -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/