Sha256: 707ab5eb6228207ba81c74d3fd2d03b3a38f01fbc5b26f9a4775fe98a466dbbe

Contents?: true

Size: 627 Bytes

Versions: 24

Compression:

Stored size: 627 Bytes

Contents

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

    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

24 entries across 24 versions & 1 rubygems

Version Path
httpx-1.0.2 sig/timers.rbs
httpx-0.24.7 sig/timers.rbs
httpx-1.0.1 sig/timers.rbs
httpx-1.0.0 sig/timers.rbs
httpx-0.24.6 sig/timers.rbs
httpx-0.24.5 sig/timers.rbs
httpx-0.24.4 sig/timers.rbs
httpx-0.24.3 sig/timers.rbs
httpx-0.24.2 sig/timers.rbs
httpx-0.24.1 sig/timers.rbs
httpx-0.24.0 sig/timers.rbs
httpx-0.23.4 sig/timers.rbs
httpx-0.23.3 sig/timers.rbs
httpx-0.23.2 sig/timers.rbs
httpx-0.23.1 sig/timers.rbs
httpx-0.23.0 sig/timers.rbs
httpx-0.22.5 sig/timers.rbs
httpx-0.22.4 sig/timers.rbs
httpx-0.22.3 sig/timers.rbs
httpx-0.22.2 sig/timers.rbs