class HTTPClient::TimeoutScheduler::Period
Represents timeout period.
def cancel
def cancel @lock.synchronize do @thread = nil end end
def initialize(thread, time, ex)
def initialize(thread, time, ex) @thread, @time, @ex = thread, time, ex @lock = Mutex.new end
def raise(message)
def raise(message) @lock.synchronize do if @thread and @thread.alive? @thread.raise(@ex, message) end end end