discussions on software development
#133 Brandon Minnick, Async Await - Common Mistakes, Part 1
November 11, 2019
00:36:18
34.87 MB
Downloads: 0
Summary
Brandon Minnick of Microsoft talks about common mistakes when using async/await, and offers solutions.
Details
Who he is, what he does. What asynchronous programming is, calling code that will return an answer in the future; multithreading. How to make a synchronous method asynchronous, freeing the calling thread; what the compiler does with async code - awaits, switch statements, move next and try catch. Calling async from sync, don't use .Result() it's a blocking call, .Result() throws an aggregate exception; use .GetAwaiter().GetResult().