about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-02 11:49:17 -0700
committerEric Wong <normalperson@yhbt.net>2010-11-04 20:36:29 -0700
commit427ef4a2953a4b2d34f7dd89566a0cb5ee6e734d (patch)
tree3686a20e1bac8de2af0727df7fb5a066d4f9f2e8
parented3a30dcfb5489447dec9c3f73e8bec9dbf7713a (diff)
downloadrainbows-427ef4a2953a4b2d34f7dd89566a0cb5ee6e734d.tar.gz
The underlying symbolic names are easier to type and
recommended.
-rw-r--r--lib/rainbows/fiber/io.rb4
-rw-r--r--lib/rainbows/rev/client.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/fiber/io.rb b/lib/rainbows/fiber/io.rb
index b8c91c5..3028eab 100644
--- a/lib/rainbows/fiber/io.rb
+++ b/lib/rainbows/fiber/io.rb
@@ -52,7 +52,7 @@ class Rainbows::Fiber::IO
           return
         when String
           buf = rv
-        when Kgio::WaitWritable
+        when :wait_writable
           wait_writable
         end
       end while true
@@ -93,7 +93,7 @@ class Rainbows::Fiber::IO
         case rv
         when nil
           raise EOFError, "end of file reached", []
-        when Kgio::WaitReadable
+        when :wait_readable
           wait_readable
         else
           return rv
diff --git a/lib/rainbows/rev/client.rb b/lib/rainbows/rev/client.rb
index e450d09..b7c1c78 100644
--- a/lib/rainbows/rev/client.rb
+++ b/lib/rainbows/rev/client.rb
@@ -30,7 +30,7 @@ module Rainbows
             case rv = @_io.kgio_trywrite(buf)
             when nil
               return enable_write_watcher
-            when Kgio::WaitWritable
+            when :wait_writable
               break # fall through to super(buf)
             when String
               buf = rv # retry, skb could grow or been drained