-
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
Question about proper CancellationToken usage within awaitable methods #110108
Comments
Tagging subscribers to this area: @dotnet/area-system-threading-tasks |
Yes. All exceptions in Task-returning methods, other than argument validation, should emerge asynchronously via the returned Task rather than being propagated out synchronously. |
Thank you very much for confirming. |
@stephentoub can you clarify? That is only the case because the method lacks the If it had |
My statement is about observable behavior. However it's implemented, that should be the observable behavior. Using |
Given the following common usage of awaitable methods:
or since .NET 8.0:
do the .NET design guidelines consider
Method2Async
as having a bug? I haven't seen any official statements, so links to relevant documentation would be appreciated.The text was updated successfully, but these errors were encountered: