Public Gists by espace

Gravatar
Mon Sep 01 04:21:46 -0700 2008
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