Ruby - Concurrent Programming
What will be printed by this Ruby code involving two Fibers exchanging values?
fiber_a = Fiber.new do
val = Fiber.yield 10
puts "Fiber A got: #{val}"
end
fiber_b = Fiber.new do
x = fiber_a.resume
Fiber.yield x + 5
fiber_a.resume 20
end
puts fiber_b.resume
puts fiber_b.resume