pub trait TaskComponent<'a>: Send + Sync {
type Data;
// Required method
fn run(&mut self, data: &mut Self::Data) -> bool;
}Expand description
An ephemeral component that needs access to Data to run some task. Will be run by run_tasks
in a system with access to task_runner_query and Data.