Function sesh::select[][src]

pub fn select<T, S>(
    rs: Vec<Recv<T, S>>
) -> (Result<(T, S), Box<dyn Error>>, Vec<Recv<T, S>>) where
    T: Send,
    S: Session

Selects the first active session. Receives from the selected session. Returns the received value, the continuation of the selected session, and a copy of the input vector without the selected session.