select

Block on multiple Channels

Only one operation is completed per select() call

select
(,,
Duration timeout = Duration.init
)

Parameters

read_list SelectEntry[]

List of Channels to select for read operation

write_list SelectEntry[]

List of Channels to select for write operation

timeout Duration

Optional timeout

Return: Returns success/failure status of the operation and the index of the Channel that the operation was carried on. The index is the position of the SelectEntry in read_list ~ write_list, ie concatenated lists.

Meta