pub async fn spawn_kitsune_p2p_with_fn<F, T>(
    config: KitsuneP2pConfig,
    tls_config: TlsConfig,
    build_host: F
) -> KitsuneP2pResult<(GhostSender<KitsuneP2p>, KitsuneP2pEventReceiver, T)>where
    F: FnOnce(GhostSender<KitsuneP2p>) -> BoxFuture<'static, (T, HostApi)>,
Expand description

Spawn a new KitsuneP2p actor, using a closure to generate the HostApi. Used for some test cases where the HostApi requires some of the intermediate values created by this function.