[Analyzer] Unawaited / returned tasks created with a disposable in using block for that disposable #78394
Labels
api-approved
API was approved in API review, it can be implemented
area-System.Threading.Tasks
code-analyzer
Marks an issue that suggests a Roslyn analyzer
help wanted
[up-for-grabs] Good issue for external contributors
Milestone
Consider code like the following:
There's a high likelihood that this Task-returning SomethingAsync will be using the SomeIDisposable instance long after it's been disposed. We should consider an analyzer that flags such situations.
The text was updated successfully, but these errors were encountered: