pub trait Spawner: DynClone + Send + Sync {
    fn spawn_blocking(
        &self,
        name: &'static str,
        group: Option<&'static str>,
        future: Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
    ); fn spawn(
        &self,
        name: &'static str,
        group: Option<&'static str>,
        future: Pin<Box<dyn Future<Output = ()> + Send + 'static, Global>>
    ); }
Expand description

A spawner

Required Methods§

Spawn the given blocking future.

The given group and name is used to identify the future in tracing.

Spawn the given non-blocking future.

The given group and name is used to identify the future in tracing.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementations on Foreign Types§

Implementors§