bevy/crates/bevy_ecs/src/schedule
lelo 42e6dc8987
Refactor EventReader::iter to read (#9631)
# Objective

- The current `EventReader::iter` has been determined to cause confusion
among new Bevy users. It was suggested by @JoJoJet to rename the method
to better clarify its usage.
- Solves #9624 

## Solution

- Rename `EventReader::iter` to `EventReader::read`.
- Rename `EventReader::iter_with_id` to `EventReader::read_with_id`.
- Rename `ManualEventReader::iter` to `ManualEventReader::read`.
- Rename `ManualEventReader::iter_with_id` to
`ManualEventReader::read_with_id`.

---

## Changelog

- `EventReader::iter` has been renamed to `EventReader::read`.
- `EventReader::iter_with_id` has been renamed to
`EventReader::read_with_id`.
- `ManualEventReader::iter` has been renamed to
`ManualEventReader::read`.
- `ManualEventReader::iter_with_id` has been renamed to
`ManualEventReader::read_with_id`.
- Deprecated `EventReader::iter`
- Deprecated `EventReader::iter_with_id`
- Deprecated `ManualEventReader::iter`
- Deprecated `ManualEventReader::iter_with_id`

## Migration Guide

- Existing usages of `EventReader::iter` and `EventReader::iter_with_id`
will have to be changed to `EventReader::read` and
`EventReader::read_with_id` respectively.
- Existing usages of `ManualEventReader::iter` and
`ManualEventReader::iter_with_id` will have to be changed to
`ManualEventReader::read` and `ManualEventReader::read_with_id`
respectively.
2023-08-30 14:20:03 +00:00
..
executor Adding Copy, Clone, Debug to derived traits of ExecutorKind (#9385) 2023-08-11 21:45:32 +00:00
condition.rs Refactor EventReader::iter to read (#9631) 2023-08-30 14:20:03 +00:00
config.rs Move schedule name into Schedule (#9600) 2023-08-28 20:44:48 +00:00
graph_utils.rs Remove reference to base sets (#9032) 2023-07-03 20:44:10 +00:00
mod.rs port old ambiguity tests over (#9617) 2023-08-29 14:53:26 +00:00
schedule.rs Move default docs (#9638) 2023-08-30 01:13:04 +00:00
set.rs Move schedule name into Schedule (#9600) 2023-08-28 20:44:48 +00:00
state.rs Document every public item in bevy_ecs (#8731) 2023-06-10 23:23:48 +00:00