pub fn dispatch(&mut self) {
        let (snd, mut inner) = self.data.sender();

        self.thread_pool.spawn(move || {
            {
                let res: &Resources = inner.res.borrow();

                for stage in &mut inner.stages {
                    stage.execute(res);
                }
            }

            let _ = snd.send(inner);
        });
    }
/// Dispatches the systems asynchronously.
/// Does not execute thread local systems.
///
/// If you want to wait for the systems to finish,
/// call `wait()`.
Dispatches the systems asynchronously.
Does not execute thread local systems.

If you want to wait for the systems to finish,
call `wait()`.
Dispatches the systems asynchronously . Does not execute thread local systems . If you want to wait for the systems to finish call ` wait () ` .
pub fn dispatch(&mut self) {
        let (snd, mut inner) = self.data.sender();
        self.thread_pool.spawn(move || {
            {
                let res: &Resources = inner.res.borrow();
                for stage in &mut inner.stages {
                    stage.execute(res);
                }
            }
            let _ = snd.send(inner);
        });
    }
pub fn dispatch ( & mut self ) { let ( snd , mut inner ) = self . data . sender ( ) ; self . thread_pool . spawn ( move | | { { let res : & Resources = inner . res . borrow ( ) ; for stage in & mut inner . stages { stage . execute ( res ) ; } } let _ = snd . send ( inner ) ; } ) ; }
Dispatches the systems asynchronously.
Dispatches the systems asynchronously .
&mut self
&mut self