/// Apply all queued disk operations on the system.
Apply all queued disk operations on the system.
Apply all queued disk operations on the system .
pub fn apply(&mut self, cancel: &Arc<AtomicBool>) -> Result<(), Error> {
        let result = {
            let &mut DiskManager {
                ref mut entities,
                ref mut components,
                ref mut systems,
                ref flags,
            } = self;
            systems::run(entities, components, systems, flags, cancel)
        };
        self.unset();
        result.map_err(Error::SystemRun)
    }
pub fn apply ( & mut self , cancel : & Arc < AtomicBool > ) -> Result < ( ) , Error > { let result = { let & mut DiskManager { ref mut entities , ref mut components , ref mut systems , ref flags , } = self ; systems :: run ( entities , components , systems , flags , cancel ) } ; self . unset ( ) ; result . map_err ( Error :: SystemRun ) }
Apply all queued disk operations on the system.
Apply all queued disk operations on the system .
&mut self
cancel
&Arc<AtomicBool>