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

A Ractor block closes over an ordinary (non-shareable) local variable from the enclosing scope. What happens?

arr = [1, 2, 3] r = Ractor.new { arr } r.take