Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • With your second example you're likely deadlocking if your calling the code like that from a UI context. You need to await ret instead of .Result. Commented Nov 16, 2017 at 20:18
  • 5
    You don't make the method asynchronous. Nothing about what that method is doing is actually asynchronous. Commented Nov 16, 2017 at 20:18
  • 2
    It would seem that your code is CPU bound and unsuited to async await. You may however gain some benefit by parallelizing certain hotspots? Commented Nov 16, 2017 at 20:24