bevy/crates/bevy_tasks/src
Martin Svanberg 21adeb6842
Add an index argument to parallel iteration helpers in bevy_tasks (#12169)
# 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.
2024-02-29 08:50:44 +00:00
..
iter Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00
lib.rs Immediately poll the executor once before spawning it as a task (#11801) 2024-02-12 15:33:35 +00:00
single_threaded_task_pool.rs Loosen lifetime requirements for single-threaded Scope::spawn to match the multi-threaded version. (#12073) 2024-02-24 06:01:34 +00:00
slice.rs Add an index argument to parallel iteration helpers in bevy_tasks (#12169) 2024-02-29 08:50:44 +00:00
task_pool.rs Fix a few Clippy lints (#11866) 2024-02-14 19:07:18 +00:00
task.rs
thread_executor.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
usages.rs