Class SystemTimer::ThreadTimer
In: lib/system_timer/thread_timer.rb
Parent: Object

Timer saving associated thread. This is needed because we trigger timers from a Ruby signal handler and Ruby signals are always delivered to main thread.

Methods

new   to_s  

Attributes

exception_class  [R] 
thread  [R] 
trigger_time  [R] 

Public Class methods

[Source]

    # File lib/system_timer/thread_timer.rb, line 11
11:     def initialize(trigger_time, thread, exception_class = nil)
12:       @trigger_time = trigger_time
13:       @thread = thread
14:           @exception_class = exception_class || Timeout::Error
15:     end

Public Instance methods

[Source]

    # File lib/system_timer/thread_timer.rb, line 17
17:     def to_s
18:       "<ThreadTimer :time => #{trigger_time}, :thread => #{thread}, :exception_class => #{exception_class}>"
19:     end

[Validate]