Class: KQueue::Watcher::Timer

Inherits:
KQueue::Watcher show all
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

Attributes inherited from KQueue::Watcher

#queue

Method Summary

Methods inherited from KQueue::Watcher

#add!, #delete!, #disable!, #enable!

Instance Attribute Details

#timeNumeric (readonly)

The interval on which the timer fires an event, in seconds.

Returns:

  • (Numeric)


9
10
11
# File 'lib/rb-kqueue/watcher/timer.rb', line 9

def time
  @time
end