bevy/crates/bevy_ecs/src/system
Mike 208ecb53dc
Append commands (#10400)
# Objective

- I've been experimenting with different patterns to try and make async
tasks more convenient. One of the better ones I've found is to return a
command queue to allow for deferred &mut World access. It can be
convenient to check for task completion in a normal system, but it is
hard to do something with the command queue after getting it back. This
pr adds a `append` to Commands. This allows appending the returned
command queue onto the system's commands.

## Solution

- I edited the async compute example to use the new `append`, but not
sure if I should keep the example changed as this might be too
opinionated.

## Future Work

- It would be very easy to pull the pattern used in the example out into
a plugin or a external crate, so users wouldn't have to add the checking
system.

---

## Changelog

- add `append` to `Commands` and `CommandQueue`
2023-11-22 00:04:37 +00:00
..
commands Append commands (#10400) 2023-11-22 00:04:37 +00:00
adapter_system.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
combinator.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
exclusive_function_system.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
exclusive_system_param.rs Document every public item in bevy_ecs (#8731) 2023-06-10 23:23:48 +00:00
function_system.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
mod.rs Link to In in pipe documentation (#10596) 2023-11-17 15:34:58 +00:00
query.rs Hide UnsafeWorldCell::unsafe_world (#9741) 2023-10-02 12:46:43 +00:00
system.rs Replace all labels with interned labels (#7762) 2023-10-25 21:39:23 +00:00
system_param.rs ParamSets containing non-send parameters should also be non-send (#10211) 2023-10-21 18:07:52 +00:00
system_registry.rs Make impl block for RemovedSystem generic (#10651) 2023-11-21 01:27:29 +00:00