select


Description:

public static Pair<int,T>? select<T> (ArrayList<Channel<T>> channels)

Waits until one channel becomes receivable.

Parameters:

channels

channels to poll.

Returns:

Pair(index, value) or null when all channels are closed.