Struct specs::Planner [] [src]

pub struct Planner<C> {
    pub systems: Vec<SystemInfo<C>>,
    // some fields omitted
}

System execution planner. Allows running systems via closures, distributes the load in parallel using a thread pool.

Fields

Permanent systems in the planner.

Methods

impl<C: 'static> Planner<C>
[src]

Creates a new planner from a given world. If you already have a ThreadPool, consider using from_pool instead. If you want to specify the number of threads, use with_num_threads.

The number of threads will be equal to the number of virtual cores.

Creates a new planner with a thread pool that has num_threads threads.

Creates a new Planner from a given thread pool.

Add a system to the dispatched list.

Runs a custom system.

Waits for all currently executing systems to finish and then returns the mutable borrow of the world, allowing to create entities instantly.

Waits for all currently executing systems to finish and then merges all queued changes.

impl<C: Clone + Send + 'static> Planner<C>
[src]

Dispatch all systems according to their associated priorities.

impl<C: 'static> Planner<C>
[src]