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

TaskCompletionSource may hang an application when used with async/await. #84

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SergeyGulik
Copy link
Contributor

Please start with this article https://devblogs.microsoft.com/premier-developer/the-danger-of-taskcompletionsourcet-class/
It had bitten us several times in the past, so I analyzed the code and for all TCS-s that are used with async/await, added the TaskCreationOptions.RunContinuationsAsynchronously option.
No, I have not got into the problem yet with MTConnect.NET. But from the experience it will happen sooner or later.

Please start with this article https://devblogs.microsoft.com/premier-developer/the-danger-of-taskcompletionsourcet-class/
It had bitten us several times in the past, so I analyzed the code and for all TCS that are used with async/await, added the TaskCreationOptions.RunContinuationsAsynchronously option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Reviewing
Development

Successfully merging this pull request may close these issues.

1 participant