Project

General

Profile

Bug #5529 » prog.rb

pragdave (Dave Thomas), 11/01/2011 01:24 AM

 
words = Fiber.new do
%w{ cat dog }.each { |line| Fiber.yield line }
end

puts words.resume
puts words.resume
puts words.resume
(1-1/2)