dotnet / dotnet/winforms

What's new with async support for WinForms event handlers?

Open
#6,478 10 comments 3 reactions 1 assignee Claimed by @KlausLoeffelmann View on GitHub
api-suggestion
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
20h 23m
Merged PRs (30d)
103

Description

I'm sure I'm not the first to ask this but is there anything new with regards to WinForms event handlers implementing `async`?

Basically, since everything is basically done in event handlers with WinForms, the question is can I use `async/await` at all?

Looks like the old workaround is to return `void` instead of `Task`. But I know this can cause problems.

I know the WinForms engine was recently built for .NET 5.0/6.0. Was any thought given to this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.