Gå frakoblet med Player FM -appen!
#133 Brandon Minnick, Async Await - Common Mistakes, Part 1
Manage episode 246041363 series 2414914
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().
173 episoder
Manage episode 246041363 series 2414914
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().
173 episoder
Alle episoder
×Velkommen til Player FM!
Player FM scanner netter for høykvalitets podcaster som du kan nyte nå. Det er den beste podcastappen og fungerer på Android, iPhone og internett. Registrer deg for å synkronisere abonnement på flere enheter.