Trait RunAsync

Source
pub trait RunAsync<'a> {
    // Required method
    fn run(&mut self, world: &'a World) -> BoxFuture<'a, ()>;
}
Expand description

Trait for fetching data and running systems with async/await. Automatically implemented for systems.

Required Methods§

Source

fn run(&mut self, world: &'a World) -> BoxFuture<'a, ()>

Runs the system now.

§Panics

Panics if the system tries to fetch resources which are borrowed in an incompatible way already (tries to read from a resource which is already written to or tries to write to a resource which is read from).

Implementors§

Source§

impl<'a, T> RunAsync<'a> for T
where T: AsyncSystem<'a>,