-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Rename AsyncStateMachineBox #11693
Comments
|
Without the Box suffix I think it's strange, as it's not actually the state machine from the compiler, but rather has the state machine as one field. So the only difference at that point is whether it has an Async prefix. And while dropping the prefix may have been a better name choice initially, I don't think that's a worthwhile change now, e.g. DumpAsync will now have to compare more possible names (or at least do more complicated comparisons), devs in a debugger will have to know about a difference between 2.1/2.2 and 3.0, etc. Just doesn't seem worth it to me. |
I agree, I'm not sure it adds much value now since we're essentially just removing the async prefix... |
k |
Mostly a preference change for debugging/profiling/examining dumps.
AsyncStateMachineBox
is calledAsyncTaskMethodBuilder+AsyncStateMachineBox<...>
in profiles, dumps etcWould an acceptable change be to rename this to
StateMachine
so it becomesAsyncTaskMethodBuilder+StateMachine<...>
?/cc @stephentoub @davidfowl
The text was updated successfully, but these errors were encountered: