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

Restore waitForShutdown #187

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

bernardnormier
Copy link
Member

This PR restores waitForShutdown in the asyncInvocation demo (see #186).

It also removes an unnecessary call to shutdown in the async demo. I don't see a way to meaningfully switch back to waitForShutdown in that demo.

See also #181.

@@ -37,7 +37,6 @@ public static int Main(string[] args)
// cts is canceled by Ctrl+C or a shutdown request.
// With C# 7.1 and up, you should make Main async and call: await Task.Delay(-1, cts.Token)
cts.Token.WaitHandle.WaitOne();
communicator.shutdown();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need this call to wait for the dispatches to finish?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, destroy aka Dispose calls shutdown.

@bernardnormier bernardnormier merged commit f0c5d19 into zeroc-ice:3.7.9-rc Mar 21, 2023
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.

None yet

4 participants