Sha256: bb4f7d96a12f1c3ef60241ad46d694e937097806e03f936dee252de503dcf84f
Contents?: true
Size: 661 Bytes
Versions: 11
Compression:
Stored size: 661 Bytes
Contents
# Copyright 2008 David Vollbracht & Philippe Hanrigou module SystemTimer # 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. class ThreadTimer attr_reader :trigger_time, :thread, :exception_class def initialize(trigger_time, thread, exception_class = nil) @trigger_time = trigger_time @thread = thread @exception_class = exception_class || Timeout::Error end def to_s "<ThreadTimer :time => #{trigger_time}, :thread => #{thread}, :exception_class => #{exception_class}>" end end end
Version data entries
11 entries across 9 versions & 5 rubygems