-
Notifications
You must be signed in to change notification settings - Fork 192
Open
Description
Why are you using GetAwaiter().GetResult() in all of your code instead of just making the functions async?
In case you don't know, in C#, you should always aim to work with async/await when you have Tasks. If you are using ".GetAwaiter ().GetResult ()", ".Result" or ".Wait ()" to get the result of a task or to wait for the task completion you may experience deadlocks or thread pool starvation.
You use them everywhere. This is not how the Cosmos DB should be used.
Line 34 in 4d747bb
| Task.WhenAll(_tasks).GetAwaiter().GetResult(); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels