![]() # Objective `bevy_tasks` provides utilities for parallel mapping over slices. It can be useful to have a chunk index available in the iteration function to know which part of the original slice is being processed. ## Solution Adds an index argument to the parallel map functions in `bevy_tasks`. --- ## Changelog ### Changed - `par_chunk_map`, `par_splat_map`, `par_chunk_map_mut`, and `par_splat_map_mut` now provide a chunk index during iteration. ## Migration Guide Functions passed as arguments to `par_chunk_map`, `par_splat_map`, `par_chunk_map_mut`, and `par_splat_map_mut` must now take an additional index argument. |
||
---|---|---|
.. | ||
iter | ||
lib.rs | ||
single_threaded_task_pool.rs | ||
slice.rs | ||
task_pool.rs | ||
task.rs | ||
thread_executor.rs | ||
usages.rs |