Class: KQueue::Watcher::Timer
- Inherits:
-
KQueue::Watcher
- Object
- KQueue::Watcher
- KQueue::Watcher::Timer
- Defined in:
- lib/rb-kqueue/watcher/timer.rb
Overview
The KQueue::Watcher subclass for events fired based on a timer. Timer events are watched via Queue#watch_timer.
Instance Attribute Summary collapse
-
#time ⇒ Numeric
readonly
The interval on which the timer fires an event, in seconds.
Attributes inherited from KQueue::Watcher
Method Summary
Methods inherited from KQueue::Watcher
#add!, #delete!, #disable!, #enable!
Instance Attribute Details
#time ⇒ Numeric (readonly)
The interval on which the timer fires an event, in seconds.
9 10 11 |
# File 'lib/rb-kqueue/watcher/timer.rb', line 9 def time @time end |