httpx/sig/selector.rbs
2020-12-07 16:30:39 +00:00

20 lines
421 B
Plaintext

module HTTPX
class Selector
READABLE: :r | :rw
WRITABLE: :w | :rw
def register: (_ToIO) -> void
def deregister: (_ToIO) -> void
def select: (Numeric?) { (_ToIO) -> void } -> void
private
def initialize: () -> untyped
def select_many: (Numeric?) { (_ToIO) -> void } -> void
def select_one: (Numeric?) { (_ToIO) -> void } -> void
end
type io_interests = :r | :w | :rw
end