pub fn close(s: End) -> Result<(), Box<dyn Error>> {
    s.sender.send(()).unwrap_or(());
    s.receiver.recv()?;
    Ok(())
}
/// Closes a session. Synchronises with the partner, and fails if the partner
/// has crashed.
Closes a session. Synchronises with the partner, and fails if the partner
has crashed.
Closes a session . Synchronises with the partner and fails if the partner has crashed .
pub fn close(s: End) -> Result<(), Box<dyn Error>> {
    s.sender.send(()).unwrap_or(());
    s.receiver.recv()?;
    Ok(())
}
pub fn close ( s : End ) -> Result < ( ) , Box < dyn Error > > { s . sender . send ( ( ) ) . unwrap_or ( ( ) ) ; s . receiver . recv ( ) ? ; Ok ( ( ) ) }
Closes a session.
Closes a session .
s
End
s
End