Skip to content

Async event handlers #1406

Open
Open
@MisinformedDNA

Description

@MisinformedDNA

Type of issue

Other (describe below)

Description

There should be documentation about how async event handlers work, best practices and pitfalls.

One issue is this documentation from DevExpress that instructs developers to use .GetAwaiter().GetResult();. This which would likely cause deadlocks, and I wanted to point DevExpress to documentation that shows them why this is bad, but cannot find anything official on why it is bad or what the workarounds may be.

There are countless more SO posts about various async issues when using WinForms.

Added by adegeo:

Page URL

https://learn.microsoft.com/en-us/dotnet/desktop/winforms/forms/events?view=netdesktop-6.0

Content source URL

https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/net/winforms/forms/events.md

Document Version Independent Id

4d5076d1-338f-1d67-c72a-09e71f62c15c

Article author

@adegeo


Associated WorkItem - 291113

Activity

adegeo

adegeo commented on Jun 27, 2022

@adegeo
Contributor

Thank you for this feedback! We'll look at getting this issue prioritized.

self-assigned this
on Jun 27, 2022
added
📌 seQUESTeredLabel to indicate an item has been imported.
and removed
🗺️ reQUESTTrigger label to import an issue into Quest
on Jun 14, 2024

54 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @MisinformedDNA@dotnet-bot@PRMerger20@adegeo

      Issue actions

        Async event handlers · Issue #1406 · dotnet/docs-desktop