pub fn spawn<F>(task_id: TaskId, future: F) -> JoinHandle<F::Output>where F: Future + Send + 'static, F::Output: Send + 'static,
Spawns a new asynchronous task, returning a [JoinHandle] for it.
JoinHandle
This is in instrumented spawn variant of Tokio’s [tokio::spawn].
tokio::spawn