class HTTPX::Timers::Timer

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

Methods

Public Class

  1. new

Public Instance

  1. cancel
  2. label

Attributes

label [RW]

simpler helper which allows classification

Public Class methods

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

Public Instance methods

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