From: 7stud -- Date: 2011-04-09T03:37:48+09:00 Subject: Re: How to know whether current Fiber is the root Fiber? How about catching the exception? begin Fiber.yield rescue FiberError puts "In root fiber..." puts "... so I am going to do something different here." end puts 'executing rest of program' --output:-- In root fiber... ... so I am going to do something different here. executing rest of program Or, maybe do something like this: -- Posted via http://www.ruby-forum.com/.