Function

select

Blocks until one of the given objects is ready for I/O.

If an object is ready, the I/O action is guaranteed to complete without blocking.

Valid object handles includes bodies and pending requests. See the async-io.pollable definition for more details, including what I/O actions are associated with each handle type.

Returns the index (not handle!) of the first object that is ready.

Traps if the list is empty.

select: func(handles: list​<borrow​<pollable>>) -> u32;