Trait polkadot_overseer::TaskKind [−][src]
pub trait TaskKind {
fn launch_task<S: SpawnNamed>(
spawner: &mut S,
task_name: &'static str,
subsystem_name: &'static str,
future: BoxFuture<'static, ()>
);
}
Expand description
Task kind to launch.
Required methods
fn launch_task<S: SpawnNamed>(
spawner: &mut S,
task_name: &'static str,
subsystem_name: &'static str,
future: BoxFuture<'static, ()>
)
fn launch_task<S: SpawnNamed>(
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.