Method: HTTPClient::TimeoutScheduler::Period#raise

Defined in:
lib/httpclient/timeout.rb

#raise(message) ⇒ Object

Raises if thread exists and alive.



40
41
42
43
44
45
46
# File 'lib/httpclient/timeout.rb', line 40

def raise(message)
  @lock.synchronize do
    if @thread and @thread.alive?
      @thread.raise(@ex, message)
    end
  end
end