[−][src]Struct specs::prelude::AsyncDispatcher
Like, Dispatcher
but works asynchronously.
Methods
impl<'a, R> AsyncDispatcher<'a, R> where
R: Borrow<World> + Send + Sync + 'static,
[src]
R: Borrow<World> + Send + Sync + 'static,
pub fn setup(&mut self) where
R: BorrowMut<World>,
[src]
R: BorrowMut<World>,
Sets up all the systems which means they are gonna add default values for the resources they need.
pub fn dispatch(&mut self)
[src]
Dispatches the systems asynchronously. Does not execute thread local systems.
If you want to wait for the systems to finish,
call wait()
.
pub fn wait(&mut self)
[src]
Waits for all the asynchronously dispatched systems to finish and executes thread local systems (if there are any).
pub fn wait_without_tl(&mut self)
[src]
Waits for all the asynchronously dispatched systems to finish without executing thread local systems.
See wait
for executing thread local systems.
pub fn running(&mut self) -> bool
[src]
Checks if any of the asynchronously dispatched systems are running.
pub fn res(&mut self) -> &R
[src]
renamed to world
Returns the World
.
This will wait for the asynchronous systems to finish.
Renamed to self.world()
.
pub fn world(&mut self) -> &R
[src]
Returns the World
.
This will wait for the asynchronous systems to finish.
pub fn mut_res(&mut self) -> &mut R
[src]
renamed to world_mut
Borrows the World
mutably.
This will wait for the asynchronous systems to finish.
Renamed to self.world_mut()
.
pub fn world_mut(&mut self) -> &mut R
[src]
Borrows the World
mutably.
This will wait for the asynchronous systems to finish.
Auto Trait Implementations
impl<'a, R> Unpin for AsyncDispatcher<'a, R> where
R: Unpin,
R: Unpin,
impl<'a, R> !Sync for AsyncDispatcher<'a, R>
impl<'a, R> !Send for AsyncDispatcher<'a, R>
impl<'a, R> !UnwindSafe for AsyncDispatcher<'a, R>
impl<'a, R> !RefUnwindSafe for AsyncDispatcher<'a, R>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,