Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardRubyThreads vs Ractors vs fibersSingle-choice MCQ

When you `Ractor#send` a mutable, non-shareable object such as `[1, 2, 3]` to another Ractor, what happens to that object?

r = Ractor.new do obj = Ractor.receive obj << 99 obj end arr = [1, 2, 3] r.send(arr) p r.take p arr