Function holochain::prelude::kitsune_p2p::test_util::spawn_handler
source · pub async fn spawn_handler<H>(
h: H
) -> impl Future<Output = (Sender<KitsuneP2pEvent>, JoinHandle<Result<(), GhostError>>)>where
H: KitsuneP2pEventHandler + GhostControlHandler,
Expand description
Create a handler task and produce a Sender for interacting with it