pub fn new_session<A>(cont: Session<A>) -> Session<A> where
    A: Protocol