relay_system

Function spawn_in

Source
pub fn spawn_in<F>(
    handle: &Handle,
    task_id: TaskId,
    future: F,
) -> JoinHandle<F::Output>
where F: Future + Send + 'static, F::Output: Send + 'static,
Expand description

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

This is in instrumented spawn variant of Tokio’s Handle::spawn.