Ruby - Concurrent Programming
Identify the error in this Ruby Ractor code:
r = Ractor.new do y = 10 end puts r.take + y
r = Ractor.new do y = 10 end puts r.take + y
y is local to the Ractor block and not accessible outside.y outside causes a NameError.y is undefined outside the Ractor -> Option C15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions