1 # -*- encoding: binary -*-
3 class Rainbows::Fiber::Coolio::Heartbeat < Coolio::TimerWatcher
4 # ZZ gets populated by read_expire in rainbows/fiber/io/methods
5 ZZ = Rainbows::Fiber::ZZ
7 exit if (! Rainbows.tick && Rainbows.cur <= 0)
10 ZZ.delete_if { |fib, time| now >= time ? fibs << fib : ! fib.alive? }
11 fibs.each { |fib| fib.resume if fib.alive? }