#134 Brandon Minnick, Async Await – Common Mistakes, Part 2

Summary
Brandon Minnick of Microsoft continues with his list of common mistakes in async/await programming and suggested solutions.

Details
Don't return awaits (sometimes), ConfigureAwait(false), synchronization context, what about API applications with no UI, and .NET Core is different too. Do I need async if I my threadpool never runs out of threads, consider scaling in the future. New in .NET Core 3, ValueTask (if method has an await but might not use it), heaps and stacks, how to find Brandon.

Links
Brandon's Twitter

Brandon's talk on async/await at NDC Oslo

Download mp3 of podcast

#133 Brandon Minnick, Async Await – Common Mistakes, Part 1

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().

Links
Brandon's Twitter

Brandon's talk on async/await at NDC Oslo

Download mp3 of podcast