-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove discussion of Task-returning non-async methods (#23001)
Fixes #16187 The usage of synchronous Task-returning methods is not generally recommended. See https://github.com/davidfowl/AspNetCoreDiagnosticScenarios/blob/master/AsyncGuidance.md#prefer-asyncawait-over-directly-returning-task The examples were valid, but can cause hard-to-diagnose issues. As we add more advanced async scenarios, this scenario belongs there, with more details about when it is and isn't appropriate. (`using` in the non-async method is the primary mistake to run into).
- Loading branch information
1 parent
b2da32f
commit f209668
Showing
4 changed files
with
4 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
docs/csharp/programming-guide/classes-and-structs/snippets/local-functions/AsyncWithLocal.cs
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
...sharp/programming-guide/classes-and-structs/snippets/local-functions/AsyncWithoutLocal.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters