Struct shred::AsyncDispatcher
[−]
[src]
pub struct AsyncDispatcher<C> { /* fields omitted */ }
Like, Dispatcher
but works
asynchronously.
Methods
impl<C> AsyncDispatcher<C> where
C: Clone + Send + 'static,
[src]
C: Clone + Send + 'static,
fn dispatch(&mut self, context: C)
Dispatches the systems asynchronously.
If you want to wait for the systems to finish,
call wait()
.
fn wait(&mut self)
Waits for all the systems to finish and executes thread local systems (if there are any).
fn mut_res(&mut self) -> &mut Resources
Returns the resources.
If wait()
wasn't called before,
this method will do that.