1
0
forked from ROMEO/nexosim

Change method name

This commit is contained in:
Jaŭhien Piatlicki 2025-01-15 14:38:31 +01:00
parent beaefe1d9e
commit 922d93bd01
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ fn main() -> Result<(), SimulationError> {
// ----------
// Simulation.
// ----------
simu.step_forever()
simu.step_unbounded()
});
// Send data to simulation from outside.

View File

@ -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,