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

Represents a cancellable handle for a specific timer event.

Methods

>   cancel!   cancelled?   fire   new   to_f  

Attributes

time  [R]  The absolute time that the handle should be fired at.

Public Class methods

Public Instance methods

Cancel this timer, O(1).

Has this timer been cancelled? Cancelled timer‘s don‘t fire.

Fire the callback if not cancelled with the given time parameter.

[Validate]