1 2 3
# In Ruby 1.9 Fiber.current returns the root fiber if not running within# the context of a fiber. tmm1's implementation didn't handle that case.# This gist introduces modifications so that Fiber.current will behave