kumo_server_runtime

Function spawn

source
pub fn spawn<FUT, N: AsRef<str>>(
    name: N,
    fut: FUT,
) -> Result<JoinHandle<FUT::Output>>
where FUT: Future + Send + 'static, FUT::Output: Send,
Expand description

Spawn a future as a task with a name. The task is spawned into the current tokio runtime.