Function spawn_okk

Source
fn spawn_okk(
    fut: impl Future<Output = Result<()>> + Send + 'static,
) -> JoinHandle<Result<()>>
Expand description

Spawn a tokio task with output of anyhow::Result, so that we can write dead loop in async functions.