From: 7stud -- Date: 2009-10-15T02:21:52+09:00 Subject: Re: Problems With Fibers in Threads Tony Arcieri wrote: > Are you trying to reschedule a fiber from a different thread? Afaik > that > doesn't work. ...for instance: require 'thread' q = Queue.new f1 = Fiber.new do puts "hello" Fiber.yield puts "world" end q.push(f1) thr = Thread.new do f = q.pop f.resume f.resume end thr.join --output:-- r1test.rb:15:in `resume': fiber called across threads (FiberError) from r1test.rb:15:in `block in
' -- Posted via http://www.ruby-forum.com/.