-
Notifications
You must be signed in to change notification settings - Fork 93
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
Resolves #80 #89
Resolves #80 #89
Conversation
It seems that as a consequence of these changes, the
I'm not yet sure why. |
I'd like to see a test cases that triggers the InvalidStateError that this is supposed to be fixing, as well as some understanding on why the multi-loop tests hang with this change. Would it be better to instead wrap the |
@jreese Thanks for taking a look at it. Honestly, I only submitted this to demonstrate in #74 that CTRL-C can be handled adequately (in conjunction with the |
I considered this, and I think it's safe. The callback given to |
That's a good point. Makes me wonder even more why that causes multi-loop tests to hang. 🤔 |
d19535c
to
8576305
Compare
I figured it out, it was a standard garden-variety closure bug, on the |
Thank you for following up on that! |
Description
Check before calling
set_result()
orset_exception()
to see whether the future is alreadydone()
or not.Fixes: #80