abstract suspend fun select(channel: SelectableChannel, ops: Int): Unit
(source)
Wait for a channel to become ready for any of the specified operations.
ops
- The interest set, as a combination of SelectionKey.OP_ACCEPT, SelectionKey.OP_CONNECT,
SelectionKey.OP_READ and/or SelectionKey.OP_WRITE.
ClosedSelectorException
- If the co-routine selector has been closed.