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

New Ice/bidir demo for C++ #295

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

bernardnormier
Copy link
Member

This is the C++ counterpart of #291.

std::launch::async,
[alarmClock = std::move(alarmClock), timePoint]()
{
// Sleep until the specified time point.
Copy link
Member

@pepone pepone Feb 12, 2025

Choose a reason for hiding this comment

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

I guess is fine for simple demos to no handle exceptions in remote requests.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, the exception handling is not what this demo is about. Less extra code = clearer demo.

Also, note that an exception does not result in a crash here. We only wait the futures (tasks), never get their results.

@bernardnormier bernardnormier merged commit 8a65ec9 into zeroc-ice:main Feb 12, 2025
7 checks passed
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.

3 participants