stratus::ext

Function spawn_named

Source
pub fn spawn_named<T>(
    name: &str,
    task: impl Future<Output = T> + Send + 'static,
) -> JoinHandle<T>
where T: Send + 'static,
Expand description

Spawns an async Tokio task with a name to be displayed in tokio-console.