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

Raise callback exceptions on communicate() #93

Merged
merged 3 commits into from
Sep 2, 2022

Conversation

MrMino
Copy link
Contributor

@MrMino MrMino commented Sep 2, 2022

Fixes #92.

Previously, only wait() raised exceptions from the callback thread.
This commit extends this behavior to communicate() in both synchronous
and async flavours.

I'm not 100% sure if I did this the right way, but it seems to work.

Previously, only `wait()` raised exceptions from the callback thread.
This commit extends this behavior to `communicate()` in both synchronous
and async flavours.
Copy link
Owner

@aklajnert aklajnert left a comment

Choose a reason for hiding this comment

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

del

@aklajnert
Copy link
Owner

Thank you for the fix, it does make sense and since all the tests pass, I'll merge it.

@aklajnert aklajnert merged commit 3c2911f into aklajnert:master Sep 2, 2022
@MrMino MrMino deleted the communicate-side-effects branch September 2, 2022 16:53
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.

communicate() does not raise exceptions from callbacks
2 participants