-
Notifications
You must be signed in to change notification settings - Fork 184
Clarify async scenarios and deadlocks #2112
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's talk about a few aspects here.
We should also address .ConfigureAwait(true/false)
, and point out, how it can help in simplifying certain type of marshalling work, but can also impose deadlocks when applied poorly.
For the ValueTask
issue in VB, I think I have a workaround, which we should provide in the docs.
dotnet-desktop-guide/winforms/controls/snippets/how-to-make-thread-safe-calls/cs/Form1.cs
Outdated
Show resolved
Hide resolved
dotnet-desktop-guide/winforms/controls/snippets/how-to-make-thread-safe-calls/cs/Form1.cs
Outdated
Show resolved
Hide resolved
dotnet-desktop-guide/winforms/controls/how-to-make-thread-safe-calls.md
Outdated
Show resolved
Hide resolved
dotnet-desktop-guide/winforms/controls/how-to-make-thread-safe-calls.md
Outdated
Show resolved
Hide resolved
dotnet-desktop-guide/winforms/controls/how-to-make-thread-safe-calls.md
Outdated
Show resolved
Hide resolved
...op-guide/winforms/controls/snippets/how-to-make-thread-safe-calls/cs/FormBackgroundWorker.cs
Outdated
Show resolved
Hide resolved
dotnet-desktop-guide/winforms/controls/snippets/how-to-make-thread-safe-calls/cs/FormThread.cs
Outdated
Show resolved
Hide resolved
...top-guide/winforms/controls/snippets/how-to-make-thread-safe-calls/cs/InvokeAsyncExamples.cs
Outdated
Show resolved
Hide resolved
...top-guide/winforms/controls/snippets/how-to-make-thread-safe-calls/cs/InvokeAsyncExamples.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
Co-authored-by: Klaus Löffelmann <9663150+KlausLoeffelmann@users.noreply.github.com>
@KlausLoeffelmann I addressed your feedback.
|
Summary
A long time coming. Updates a few places with information about deadlocks and demonstrates code. Also adds reference to the new InvokeAsync methods in .NET 9.
Fixes #1406
Internal previews