-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Short description of the feature
Allow to pause the simulation and later on resume it.
Describe the solution you'd like
Simulation code should be able to pause at any time. This freezes the current simulation state.
async def some_activity():
if time == 20:
await usim.resume # new call to pause simulation until resumed
Each simulation is represented by an object. usim.run
returns this object when the simulation is frozen. The object allows unfreezing:
simulation = usim.run(some_activity())
print("Current state:", simulation)
simulation.resume()
Describe alternatives and the context you have considered
There is currently no way to freeze a simulation.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request