pub fn wait(id: Id) -> Result<(), Error> {
    let queue = by_id(id).ok_or(Error::UnknownPid(id))?
        .lock().exit_wait.clone();

    wait!(by_id(id).map(|p| p.lock().is_dead()).unwrap_or(true), [queue]);

    Ok(())
}
/// Sleep until the given process id wakes up.
Sleep until the given process id wakes up.
Sleep until the given process id wakes up .
pub fn wait(id: Id) -> Result<(), Error> {
    let queue = by_id(id).ok_or(Error::UnknownPid(id))?
        .lock().exit_wait.clone();
    wait!(by_id(id).map(|p| p.lock().is_dead()).unwrap_or(true), [queue]);
    Ok(())
}
pub fn wait ( id : Id ) -> Result < ( ) , Error > { let queue = by_id ( id ) . ok_or ( Error :: UnknownPid ( id ) ) ? . lock ( ) . exit_wait . clone ( ) ; wait ! ( by_id ( id ) map ( p p lock ( ) is_dead ( ) ) unwrap_or ( true ) [ queue ] ) ; Ok ( ( ) ) }
Sleep until the given process id wakes up.
Sleep until the given process id wakes up .
id
Id