about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-05 15:01:28 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-05 15:03:29 -0800
commited1d5f187de90105b1d01d3d8711eba14115ccf0 (patch)
treeca6e563d73304238a63e3e955c5c6abb9fd3216a
parent2783d3b69784231a36243c30a56aeefa6b39c181 (diff)
downloadrainbows-ed1d5f187de90105b1d01d3d8711eba14115ccf0.tar.gz
Rev/Packet-based models may support it in the future
-rw-r--r--lib/rainbows/ev_core.rb3
-rw-r--r--lib/rainbows/event_machine.rb3
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index f61b33f..2a064dd 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -8,6 +8,9 @@ module Rainbows
     include Rainbows::Const
     G = Rainbows::G
 
+    # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ]
+    ASYNC_CALLBACK = "async.callback".freeze
+
     def self.setup(klass)
       klass.const_set(:APP, G.server.app)
     end
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb
index 2425cf0..2fa18f1 100644
--- a/lib/rainbows/event_machine.rb
+++ b/lib/rainbows/event_machine.rb
@@ -35,9 +35,6 @@ module Rainbows
       include Rainbows::EvCore
       G = Rainbows::G
 
-      # Apps may return this Rack response: AsyncResponse = [ -1, {}, [] ]
-      ASYNC_CALLBACK = 'async.callback'.freeze
-
       def initialize(io)
         @_io = io
       end