Class Timers::Timer
In: lib/timers/timer.rb
Parent: Object

An individual timer set to fire a given proc at a given time. A timer is always connected to a Timer::Group but it would ONLY be in @group.timers if it also has a @handle specified. Otherwise it is either PAUSED or has been FIRED and is not recurring. You can manually enter this state by calling cancel and resume normal operation by calling reset.

Methods

call   cancel   continue   delay   fire   fires_in   inspect   new   pause   paused?   reset   resume  

Included Modules

Comparable

Attributes

interval  [R] 
offset  [R] 
recurring  [R] 

Public Class methods

Public Instance methods

call(offset = @group.current_offset)

Alias for fire

Cancel this timer. Do not call while paused.

continue()

Alias for resume

Extend this timer

Number of seconds until next fire / since last fire

Inspect a timer

Reset this timer. Do not call while paused.

[Validate]