pub fn async_acquire_shared_session<F>(
    shared: SharedChannel<LinearToShared<F>>,
    cont1: impl FnOnce(Z) -> PartialSession<(<F as SharedRecApp<SharedToLinear<LinearToShared<F>>>>::Applied, ()), End> + Send + 'static
) -> JoinHandle<()> where
    F: Protocol + SharedRecApp<SharedToLinear<LinearToShared<F>>>,
    <F as SharedRecApp<SharedToLinear<LinearToShared<F>>>>::Applied: Protocol