spawn_server_task

Function spawn_server_task 

Source
pub fn spawn_server_task<F>(task: F)
where F: Future<Output = ()> + Send + 'static,
Expand description

Spawns a server related task future onto the tokio runtime and adds the abort handle for the task to the task collection

ยงArguments

  • task - The task future to spawn