Function std::select::select

pub fn select<A: Select>(ports: &mut [A]) -> uint

Receive a message from any one of many ports at once. Returns the index of the port whose data is ready. (If multiple are ready, returns the lowest index.)