From 922d93bd01687b9eaab32dd636dd0a021cb4a883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=C5=ADhien=20Piatlicki?= Date: Wed, 15 Jan 2025 14:38:31 +0100 Subject: [PATCH] Change method name --- nexosim/examples/infinite_loop.rs | 2 +- nexosim/src/simulation.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nexosim/examples/infinite_loop.rs b/nexosim/examples/infinite_loop.rs index 4af001e..32c92b5 100644 --- a/nexosim/examples/infinite_loop.rs +++ b/nexosim/examples/infinite_loop.rs @@ -104,7 +104,7 @@ fn main() -> Result<(), SimulationError> { // ---------- // Simulation. // ---------- - simu.step_forever() + simu.step_unbounded() }); // Send data to simulation from outside. diff --git a/nexosim/src/simulation.rs b/nexosim/src/simulation.rs index cf20b02..28c3ffd 100644 --- a/nexosim/src/simulation.rs +++ b/nexosim/src/simulation.rs @@ -244,7 +244,7 @@ impl Simulation { /// /// This method blocks until all events scheduled have completed. If /// simulation is halted, this method returns without an error. - pub fn step_forever(&mut self) -> Result<(), ExecutionError> { + pub fn step_unbounded(&mut self) -> Result<(), ExecutionError> { match self.step_until_unchecked(None) { Err(ExecutionError::Halted) => Ok(()), result => result,