about summary refs log tree commit homepage
path: root/lib/rainbows/fiber.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-26 23:52:43 +0000
committerEric Wong <normalperson@yhbt.net>2010-12-26 23:52:43 +0000
commitc4d92b384dd3f926fa12eb704eeef663a9cb7b66 (patch)
treecf369801f6d7661d7a56bf077095559905d4f9cc /lib/rainbows/fiber.rb
parent2e131bfd21f5ec5acc3c86233e5e292cec7aa67d (diff)
downloadrainbows-c4d92b384dd3f926fa12eb704eeef663a9cb7b66.tar.gz
This should make things easier on the eyes.
Diffstat (limited to 'lib/rainbows/fiber.rb')
-rw-r--r--lib/rainbows/fiber.rb4
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'