Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

IO::Select

Native Rust implementation built into the interpreter. Runtime: P5. See original documentation for the full Perl reference.

IO::Select objects are blessed HV refs internally storing:

  • __fds: an AV ref mapping fd_number -> stored handle SV
  • __count: integer count of registered handles

Mirrors the pp.rs implementation using P5Interp/P5Sv types.

Functions

add

add handles to the select set.

bits

return vec-style bitmask string.

can_read

which handles are readable.

can_write

which handles are writable.

count

return number of registered handles.

exists

check if handle is in the set.

handles

return list of all registered handles.

has_exception

which handles have exceptions.

import

noop.

new

create new select set.

remove

remove handles from the select set.

select

Static method. Returns () on timeout, or ($readable, $writable, $excepted) arrayrefs.