class IO::Event::Timers

def flush!

This is a small optimization which assumes that most timers (timeouts) will be cancelled.

Flush all scheduled timers into the heap.
def flush!
dle = @scheduled.pop
sh(handle) unless handle.cancelled?