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

Why does creating a Ractor whose block reads an ordinary local variable from the enclosing scope raise an error?

x = [1, 2, 3] Ractor.new { x }