Skip to content
Discussion options

You must be logged in to vote

Since we have the runtime=async now

Runtime async is IL-level compatible with async1. async Task and async void are still different under runtime async.

I wonder if we could fix the subscription of event handlers using async Task instead of async void.

It's not something to "fix" here. async void is the fire-and-forgot bridge.

For example: replace subscribing to events using Delegate.Combine with AsyncHelpers.CombineDelegateAsync or so

This is not a thing. async void method is totally not distinguishable with void returning method, and this is very by design.

In other words, runtime async still uses Task and Task<T> as the return type, not void and T.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by teo-tsirpanis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants