Skip to content

Commit 70a0cc9

Browse files
committed
Replace single_threaded -> parallel
1 parent c6fd027 commit 70a0cc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/bevy_ecs/src/system/system_piping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub mod adapter {
202202
/// // Building a new schedule/app...
203203
/// # use bevy_ecs::schedule::SystemStage;
204204
/// # let mut sched = Schedule::default(); sched
205-
/// # .add_stage(CoreStage::Update, SystemStage::single_threaded())
205+
/// # .add_stage(CoreStage::Update, SystemStage::parallel())
206206
/// .add_system_to_stage(
207207
/// CoreStage::Update,
208208
/// // Panic if the load system returns an error.
@@ -246,7 +246,7 @@ pub mod adapter {
246246
/// // Building a new schedule/app...
247247
/// # use bevy_ecs::schedule::SystemStage;
248248
/// # let mut sched = Schedule::default(); sched
249-
/// # .add_stage(CoreStage::Update, SystemStage::single_threaded())
249+
/// # .add_stage(CoreStage::Update, SystemStage::parallel())
250250
/// .add_system_to_stage(
251251
/// CoreStage::Update,
252252
/// // If the system fails, just move on and try again next frame.

crates/bevy_time/src/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl Time {
120120
/// world.insert_resource(time);
121121
/// world.insert_resource(Health { health_value: 0.2 });
122122
///
123-
/// let mut update_stage = SystemStage::single_threaded();
123+
/// let mut update_stage = SystemStage::parallel();
124124
/// update_stage.add_system(health_system);
125125
///
126126
/// // Simulate that 30 ms have passed

crates/bevy_transform/src/systems.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ mod test {
320320

321321
// Adding the system in a single threaded stage. As the system will panic, this will
322322
// only bring down the current test thread.
323-
app.add_stage("single", SystemStage::single_threaded())
323+
app.add_stage("single", SystemStage::parallel())
324324
.add_system_to_stage("single", transform_propagate_system);
325325

326326
fn setup_world(world: &mut World) -> (Entity, Entity) {

0 commit comments

Comments
 (0)