How to override async void
method builder?
#6783
Unanswered
timcassell
asked this question in
Q&A
Replies: 1 comment 1 reply
-
As far as I remember, this is not something we designed to be able to override. @jcouv would know for sure, but I doubt it's supported. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I copied the default
System.Runtime.CompilerServices.AsyncVoidMethodBuilder
and changed the public methods to call my own system, and I tried to apply it to a method for testing, but my builder never gets used.PromiseVoidMethodBuilder implementation
Is overriding
async void
method builder supported, or am I doing something wrong?@stephentoub
P.S. I am able to override
async ValueTask
without issue. Using net6.0 and C# 10.Beta Was this translation helpful? Give feedback.
All reactions