Skip to content

HostHook.CallAsync should use TaskCompletionSource.SetException instead of throwing exception #430

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

Merged
merged 3 commits into from
Jun 12, 2020

Conversation

freosc
Copy link
Contributor

@freosc freosc commented Jun 12, 2020

Actually, this pattern should be updated in the rest of the code as well.
Anywhere you use a TaskCompletionSource, you have to make sure the setResult or setException is called, otherwise the calling code will await forever.

freosc and others added 3 commits June 8, 2020 09:09
@GregorBiswanger GregorBiswanger self-assigned this Jun 12, 2020
@GregorBiswanger GregorBiswanger added this to the 9.31.1 milestone Jun 12, 2020
@GregorBiswanger GregorBiswanger merged commit ca7414b into ElectronNET:master Jun 12, 2020
@GregorBiswanger
Copy link
Member

Thank you for your contribution! Write me your postal address on Gitter and you will get Electron.NET sticker :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants