Class Timers::Events
In: lib/timers/events.rb
Parent: Object

Maintains an ordered list of events, which can be cancelled.

Methods

fire   first   new   schedule   size  

Classes and Modules

Class Timers::Events::Handle

Public Class methods

Public Instance methods

Fire all handles for which Handle#time is less than the given time.

Returns the first non-cancelled handle.

Add an event at the given time.

Returns the number of pending (possibly cancelled) events.

[Validate]