Sha256: 4d8744781863f71a58c4ba9e23c3d6c821c17e477d41dcd7f9a8876a20651ab3

Contents?: true

Size: 629 Bytes

Versions: 15

Compression:

Stored size: 629 Bytes

Contents

module HTTPX
  class Timers
    @intervals: Array[Interval]
    @next_interval_at: Numeric

    def after: (Numeric interval_in_secs) { () -> void } -> void

    def wait_interval: () -> Numeric?

    def fire: (?TimeoutError error) -> void

    def cancel: () -> void

    private

    def initialize: () -> void

    class Interval
      include Comparable

      attr_reader interval: Numeric

      @callbacks: Array[^() -> void]

      def to_f: () -> Float

      def <<: (^() -> void) -> void

      def elapse: (Numeric elapsed) -> Numeric
      private

      def initialize: (Numeric interval) -> void
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
httpx-0.20.5 sig/timers.rbs
httpx-0.20.4 sig/timers.rbs
httpx-0.20.3 sig/timers.rbs
httpx-0.20.2 sig/timers.rbs
httpx-0.20.1 sig/timers.rbs
httpx-0.20.0 sig/timers.rbs
httpx-0.19.8 sig/timers.rbs
httpx-0.19.7 sig/timers.rbs
httpx-0.19.6 sig/timers.rbs
httpx-0.19.5 sig/timers.rbs
httpx-0.19.4 sig/timers.rbs
httpx-0.19.3 sig/timers.rbs
httpx-0.19.2 sig/timers.rbs
httpx-0.19.1 sig/timers.rbs
httpx-0.19.0 sig/timers.rbs