Skip to content

Why are you using these? #1

@markjbrown

Description

@markjbrown

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions