class HTTPX::Timers::Timer

  1. lib/httpx/timers.rb
Superclass: Object

Methods

Public Class

  1. new

Public Instance

  1. cancel

Public Class methods

new(interval, callback)
[show source]
   # File lib/httpx/timers.rb
67 def initialize(interval, callback)
68   @interval = interval
69   @callback = callback
70 end

Public Instance methods

cancel()
[show source]
   # File lib/httpx/timers.rb
72 def cancel
73   @interval.delete(@callback)
74 end