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

Question: Under what circumstances timer.cancel() throws? #15

Open
bebuch opened this issue Apr 23, 2018 · 0 comments
Open

Question: Under what circumstances timer.cancel() throws? #15

bebuch opened this issue Apr 23, 2018 · 0 comments

Comments

@bebuch
Copy link

bebuch commented Apr 23, 2018

In the current Networking TS (N4734) basic_waitable_timer::cancel() is not noexcept. Is this because of memory allocation while canceling or was the noexcept simply forgotten?

The question is probably more important for expires_at(). I assume it throws under the same circumstances as cancel(). When calling expires_at() I often know that there are no pending async_wait's. Is it safe to call expires_at() without expecting an exception then? If yes, a hint on that in the TS would be very useful.

I asked a similar question on Stackoverflow.

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

No branches or pull requests

1 participant