Life is async, and our code should be async as well. Why would we want to block the thread instead of using async pattern?
sometask.Wait()
, sometask.Result
, sometask.GetAwaiter().GetResult()
are evil methods and should be avoided as a general rule.
https://medium.com/rubrikkgroup/understanding-async-avoiding-deadlocks-e41f8f2c6f5d