Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Simulator.endSimulation return a Future #455

Merged
merged 4 commits into from
Jan 4, 2024

Conversation

mkorbel1
Copy link
Contributor

@mkorbel1 mkorbel1 commented Jan 4, 2024

Description & Motivation

Sometimes when ending a simulation, you may want to wait for it to actually end. This PR makes Simulator.endSimulation return a Future<void> which is the same as Simulator.simulationEnded, saving some time and lines.

Related Issue(s)

N/A

Testing

Added new test

Backwards-compatibility

Is this a breaking change that will not be backwards-compatible? If yes, how so?

Probably not, but you may get a lint warning depending on settings for unawaited futures, or you may get some behavior changes if you have things that behave differently on Futures vs voids.

Documentation

Does the change require any updates to documentation? If so, where? Are they included?

No

@mkorbel1 mkorbel1 merged commit 395921c into intel:main Jan 4, 2024
2 checks passed
@mkorbel1 mkorbel1 deleted the simendfuture branch January 4, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant