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

Why is a frozen Array of frozen elements shareable across Ractors while a frozen Array that contains one unfrozen String is not?

p Ractor.shareable?([1, 2, 3].freeze) p Ractor.shareable?([+"a"].freeze)