Sha256: 3029b83ccd2397d5761f2b3fdf3d76243832810422fde5c6b942f501d02eeaee

Contents?: true

Size: 593 Bytes

Versions: 10

Compression:

Stored size: 593 Bytes

Contents

module HTTPX
  class Selector
    type selectable = Connection | Resolver::Native | Resolver::System

    READABLE: Array[Symbol]
    WRITABLE: Array[Symbol]
    @selectables: Array[selectable]

    def register: (selectable io) -> void
    def deregister: (selectable io) -> void

    def select: (Numeric? interval) { (selectable) -> void } -> void

    private

    def initialize: () -> untyped

    def select_many: (Numeric? interval) { (selectable) -> void } -> void
    def select_one: (Numeric? interval) { (selectable) -> void } -> void
  end

  type io_interests = :r | :w | :rw
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
httpx-0.20.0 sig/selector.rbs
httpx-0.19.8 sig/selector.rbs
httpx-0.19.7 sig/selector.rbs
httpx-0.19.6 sig/selector.rbs
httpx-0.19.5 sig/selector.rbs
httpx-0.19.4 sig/selector.rbs
httpx-0.19.3 sig/selector.rbs
httpx-0.19.2 sig/selector.rbs
httpx-0.19.1 sig/selector.rbs
httpx-0.19.0 sig/selector.rbs