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

Item returned by the query

Required Methods

Execute a function for each item of the query in pararell using rayon.

Fallible version of [QueryBorrow::par_for_each]

Implementations on Foreign Types

Implementors