Repository navigation
fixing async void event handler subscription with runtime=async #137412
|
Since we have the runtime=async now, I wonder if we could fix the subscription of event handlers using async Task instead of async void. |
Replies: 1 comment
Runtime async is IL-level compatible with async1.
It's not something to "fix" here.
This is not a thing. In other words, runtime async still uses |
Runtime async is IL-level compatible with async1.
async Taskandasync voidare still different under runtime async.It's not something to "fix" here.
async voidis the fire-and-forgot bridge.This is not a thing.
async voidmethod is totally not distinguishable withvoidreturning method, and this is very by design.In other words, runtime async still uses
TaskandTask<T>as the return type, notvoidandT.