-
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
[Analyzer] Async methods that don't take a CancellationToken #78397
Comments
Tagging subscribers to this area: @dotnet/area-system-threading-tasks Issue DetailsCancellation is often important to the scalability of an app / service. If an async method has no way to cancel it, that can impact scalability and responsiveness. We should consider adding an analyzer (likely off by default due to noise) that flags async methods (
|
Looks good as proposed (finding Task-like returning method groups with no overloads that accept a CancellationToken). Category: Design |
I would like to be assigned to this, please |
Thanks @pedrodeandrade, assigned to you |
Cancellation is often important to the scalability of an app / service. If an async method has no way to cancel it, that can impact scalability and responsiveness. We should consider adding an analyzer (likely off by default due to noise) that flags async methods (
async
and/orTask
/ValueTask
-returning) that have no overloads which accept aCancellationToken
, and issue a diagnostic to consider taking one.The text was updated successfully, but these errors were encountered: