From 55d6c7d56e109b34dfd1b969e205b8b4b1572d69 Mon Sep 17 00:00:00 2001 From: Troels Jessen Date: Mon, 1 May 2023 17:31:33 +0200 Subject: [PATCH] Added reference to ParallelCommands in the Commands doc (#8510) # Objective Fixes #8414 --------- Co-authored-by: Sheepyhead Co-authored-by: Nicola Papale --- crates/bevy_ecs/src/system/commands/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/bevy_ecs/src/system/commands/mod.rs b/crates/bevy_ecs/src/system/commands/mod.rs index 06271dc22c..e5db31f50b 100644 --- a/crates/bevy_ecs/src/system/commands/mod.rs +++ b/crates/bevy_ecs/src/system/commands/mod.rs @@ -62,6 +62,10 @@ pub trait Command: Send + 'static { /// * inserting resources /// * etc. /// +/// For a version of [`Commands`] that works in parallel contexts (such as +/// within [`Query::par_iter`](crate::system::Query::par_iter)) see +/// [`ParallelCommands`] +/// /// # Usage /// /// Add `mut commands: Commands` as a function argument to your system to get a copy of this struct that will be applied the next time a copy of [`apply_system_buffers`] runs.