Function spawn_in
pub fn spawn_in<F>(
runtime: &Handle,
future: F,
) -> JoinHandle<<F as Future>::Output> ⓘAvailable on crate feature
dial9 only.Expand description
Spawn a traced task onto a specific runtime, from any thread.
Like [tokio::runtime::Handle::spawn], but the task’s polls are instrumented
when runtime is dial9-traced. Unlike spawn, the calling thread need not
belong to a dial9 runtime: instrumentation resolves on the target runtime’s
worker at the task’s first poll. Spawning into an untraced runtime records
nothing, the same as spawn on an untraced runtime.