about summary refs log tree commit homepage
path: root/lib/rainbows/fiber_pool.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/fiber_pool.rb')
-rw-r--r--lib/rainbows/fiber_pool.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber_pool.rb b/lib/rainbows/fiber_pool.rb
index 64a638c..07a9faf 100644
--- a/lib/rainbows/fiber_pool.rb
+++ b/lib/rainbows/fiber_pool.rb
@@ -30,7 +30,7 @@ module Rainbows::FiberPool
 
     begin
       schedule do |l|
-        fib = pool.shift or break # let another worker process take it
+        fib = pool.pop or break # let another worker process take it
         if io = l.kgio_tryaccept
           fib.resume(io)
         else