# File lib/timers/events.rb, line 66 def first while (handle = @sequence.last) return handle unless handle.cancelled? @sequence.pop end end