Sha256: 5891c48c559a81d5ca50928e0d911ddefb0d9bb8f1d19e5af1fd55fd640eea9e

Contents?: true

Size: 586 Bytes

Versions: 9

Compression:

Stored size: 586 Bytes

Contents

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

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

    def register: (selectable) -> void
    def deregister: (selectable) -> 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

9 entries across 9 versions & 1 rubygems

Version Path
httpx-0.18.7 sig/selector.rbs
httpx-0.18.6 sig/selector.rbs
httpx-0.18.5 sig/selector.rbs
httpx-0.18.4 sig/selector.rbs
httpx-0.18.3 sig/selector.rbs
httpx-0.18.2 sig/selector.rbs
httpx-0.18.1 sig/selector.rbs
httpx-0.18.0 sig/selector.rbs
httpx-0.17.0 sig/selector.rbs