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-0.22.1 sig/timers.rbs
httpx-0.22.0 sig/timers.rbs
httpx-0.21.1 sig/timers.rbs
httpx-0.21.0 sig/timers.rbs