You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RuntimeAsync] ConfigureAwait(bool) is not optimized for ValueTask-returning method. #119617
Observed while enabling rt async in Libraires partition - #119432
While the optimization should not be needed for correctness, thus not the first priority to fix, it is certainly not the intention to leave this unoptimized.
The reason why we do not recognize the await pattern in Await(call).ConfigureAwait(false) when call returns ValueTask is because we expect ConfigureAwait applied to the result, but the IL contains stloc;ldloca in between.
The importer (impMatchTaskAwaitPattern) needs to learn about this.
Activity
dotnet-policy-service commentedon Sep 12, 2025
Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.
[RuntimeAsync] Fix Await pattern detection for ValueTask in Configure…