-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Update runtime async spec #76872
base: main
Are you sure you want to change the base?
Update runtime async spec #76872
Conversation
Updates from the runtime side: dotnet/runtime#110420.
@jcouv @jakobbotsch @VSadov @agocke, this is the expected Roslyn code-gen side of the intrinsic method await version. Please give it a look! |
Translated C#: | ||
|
||
```cs | ||
System.Runtime.CompilerServices.RuntimeHelpers.Await(C.M<Task>()); |
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.
@jakobbotsch @VSadov is it going to complicate the JIT's pattern matching significantly if we use this approach for generic methods like this? In the old specialized call version, we would have needed go to through UnsafeAwaitAwaiterFromRuntimeAsync
, but since this now just appears to be Task
-returning method, I'm hoping we can keep IL size down and just call Await
.
Updates from the runtime side: dotnet/runtime#110420.