Represents timeout period.
Cancel this Period. Mutex is needed to avoid too-late exception.
# File lib/httpclient/timeout.rb, line 49 def cancel @lock.synchronize do @thread = nil end end
Creates new Period.
# File lib/httpclient/timeout.rb, line 34 def initialize(thread, time, ex) @thread, @time, @ex = thread, time, ex @lock = Mutex.new end
Generated with the Darkfish Rdoc Generator 2.