about summary refs log tree commit homepage
path: root/lib/rainbows/fiber.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-29 16:19:02 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-29 17:50:54 -0800
commit16c0391066b38e5f3ea834b59632645890519574 (patch)
tree0f4475073323b0bc5c032fe21ae1052e57def75b /lib/rainbows/fiber.rb
parentf050fcb9e5da4adf3b5b4f65c0590360113e78fd (diff)
downloadrainbows-16c0391066b38e5f3ea834b59632645890519574.tar.gz
Diffstat (limited to 'lib/rainbows/fiber.rb')
-rw-r--r--lib/rainbows/fiber.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rainbows/fiber.rb b/lib/rainbows/fiber.rb
index c30bd7a..ec0cee3 100644
--- a/lib/rainbows/fiber.rb
+++ b/lib/rainbows/fiber.rb
@@ -1,5 +1,9 @@
 # -*- encoding: binary -*-
-require 'fiber'
+begin
+  require 'fiber'
+rescue LoadError
+  defined?(NeverBlock) or raise
+end
 
 module Rainbows