pub struct TaskManagerSystem;
Expand description
Traverses all descendents of all finalized entities and unblocks them if possible.
Also does some garbage collection:
- deletes task graphs with
OnCompletion::Delete
- removes
FinalTag
components from completed entities
Trait Implementations§
Source§impl<'a> System<'a> for TaskManagerSystem
impl<'a> System<'a> for TaskManagerSystem
Source§type SystemData = (TaskData<'a, Storage<'a, TaskProgress, Fetch<'a, MaskedStorage<TaskProgress>>>, Storage<'a, SingleEdge, Fetch<'a, MaskedStorage<SingleEdge>>>, Storage<'a, MultiEdge, Fetch<'a, MaskedStorage<MultiEdge>>>, ()>, Storage<'a, FinalTag, FetchMut<'a, MaskedStorage<FinalTag>>>)
type SystemData = (TaskData<'a, Storage<'a, TaskProgress, Fetch<'a, MaskedStorage<TaskProgress>>>, Storage<'a, SingleEdge, Fetch<'a, MaskedStorage<SingleEdge>>>, Storage<'a, MultiEdge, Fetch<'a, MaskedStorage<MultiEdge>>>, ()>, Storage<'a, FinalTag, FetchMut<'a, MaskedStorage<FinalTag>>>)
The resource bundle required to execute this system. Read more
Source§fn run(&mut self, (task_user, finalized): Self::SystemData)
fn run(&mut self, (task_user, finalized): Self::SystemData)
Executes the system with the required system
data.
Source§fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
Source§fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData
.Auto Trait Implementations§
impl Freeze for TaskManagerSystem
impl RefUnwindSafe for TaskManagerSystem
impl Send for TaskManagerSystem
impl Sync for TaskManagerSystem
impl Unpin for TaskManagerSystem
impl UnwindSafe for TaskManagerSystem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more