relay_system

Function spawn

source
pub fn spawn<F>(task_id: TaskId, future: F) -> JoinHandle<F::Output>
where F: Future + Send + 'static, F::Output: Send + 'static,
Expand description

Spawns a new asynchronous task, returning a [JoinHandle] for it.

This is in instrumented spawn variant of Tokio’s [tokio::spawn].