diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-26 23:52:43 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-26 23:52:43 +0000 |
commit | c4d92b384dd3f926fa12eb704eeef663a9cb7b66 (patch) | |
tree | cf369801f6d7661d7a56bf077095559905d4f9cc /lib/rainbows/fiber.rb | |
parent | 2e131bfd21f5ec5acc3c86233e5e292cec7aa67d (diff) | |
download | rainbows-c4d92b384dd3f926fa12eb704eeef663a9cb7b66.tar.gz |
This should make things easier on the eyes.
Diffstat (limited to 'lib/rainbows/fiber.rb')
-rw-r--r-- | lib/rainbows/fiber.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rainbows/fiber.rb b/lib/rainbows/fiber.rb index b516fb9..ed01147 100644 --- a/lib/rainbows/fiber.rb +++ b/lib/rainbows/fiber.rb @@ -24,8 +24,8 @@ module Rainbows::Fiber # right?). Calling this directly is deprecated, use # Rainbows.sleep(seconds) instead. def self.sleep(seconds) - ZZ[::Fiber.current] = Time.now + seconds - ::Fiber.yield + ZZ[Fiber.current] = Time.now + seconds + Fiber.yield end autoload :Base, 'rainbows/fiber/base' |