Sha256: df254b2b5cbe10e58db607d269c6e1f6bbd8c0443c02f84a5df66d089ff13099

Contents?: true

Size: 600 Bytes

Versions: 46

Compression:

Stored size: 600 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) -> selectable?

    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

46 entries across 46 versions & 1 rubygems

Version Path
httpx-1.3.4 sig/selector.rbs
httpx-1.3.3 sig/selector.rbs
httpx-1.3.2 sig/selector.rbs
httpx-1.3.1 sig/selector.rbs
httpx-1.3.0 sig/selector.rbs
httpx-1.2.6 sig/selector.rbs
httpx-1.2.4 sig/selector.rbs
httpx-1.2.3 sig/selector.rbs
httpx-1.2.2 sig/selector.rbs
httpx-1.2.1 sig/selector.rbs
httpx-1.2.0 sig/selector.rbs
httpx-1.1.5 sig/selector.rbs
httpx-1.1.4 sig/selector.rbs
httpx-1.1.3 sig/selector.rbs
httpx-1.1.2 sig/selector.rbs
httpx-1.1.1 sig/selector.rbs
httpx-1.1.0 sig/selector.rbs
httpx-1.0.2 sig/selector.rbs
httpx-0.24.7 sig/selector.rbs
httpx-1.0.1 sig/selector.rbs