pub trait SpawnNamed: DynClone + Send + Sync {
    fn spawn_blocking(
        &self,
        name: &'static str,
        group: Option<&'static str>,
        future: BoxFuture<'static, ()>
    );
fn spawn(
        &self,
        name: &'static str,
        group: Option<&'static str>,
        future: BoxFuture<'static, ()>
    ); }
Expand description

Something that can spawn tasks (blocking and non-blocking) with an assigned name and optional group.

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.

Implementations on Foreign Types

Implementors