Skip to main content

spawn

Function spawn 

Source
pub fn spawn<E: Display + Send + 'static>(
    span: Span,
    name: impl Into<Cow<'static, str>>,
    fut: impl Future<Output = Result<(), E>> + Send + 'static,
) -> JoinHandle<()> 
Expand description

Spawns a future with tracing instrumentation.