net-coroutines / org.apache.tuweni.net.coroutines / CoroutineSelector / select

select

abstract suspend fun select(channel: SelectableChannel, ops: Int): Unit (source)

Wait for a channel to become ready for any of the specified operations.

Parameters

channel - The channel.

ops - The interest set, as a combination of SelectionKey.OP_ACCEPT, SelectionKey.OP_CONNECT, SelectionKey.OP_READ and/or SelectionKey.OP_WRITE.

Exceptions

ClosedSelectorException - If the co-routine selector has been closed.