pub trait TaskKind {
    // Required method
    fn launch_task<S: Spawner>(
        spawner: &mut S,
        task_name: &'static str,
        subsystem_name: &'static str,
        future: BoxFuture<'static, ()>
    );
}
Expand description

Task kind to launch.

Required Methods§

source

fn launch_task<S: Spawner>( spawner: &mut S, task_name: &'static str, subsystem_name: &'static str, future: BoxFuture<'static, ()> )

Spawn a task, it depends on the implementer if this is blocking or not.

Implementors§