Trait hecs_schedule::traits::QueryExt
source · [−]pub trait QueryExt {
type Item;
fn par_for_each(
self,
batch_size: u32,
func: impl Fn((Entity, Self::Item)) + Send + Sync
);
fn try_par_for_each<E: Send>(
self,
batch_size: u32,
func: impl Fn((Entity, Self::Item)) -> Result<(), E> + Send + Sync
) -> Result<(), E>;
}Expand description
Extends the queries for additional paralell operation
Required Associated Types
Required Methods
Execute a function for each item of the query in pararell using rayon.