pub fn run_shared_session_with_join_handle<A>(
    session: SharedSession<A>
) -> (SharedChannel<A>, JoinHandle<()>) where
    A: SharedProtocol