User Tools

Site Tools


dotnet:async-await

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dotnet:async-await [2024/09/23 15:45] lhnyr4f3dotnet:async-await [2024/09/23 16:30] (current) lhnyr4f3
Line 4: Line 4:
  
   * [[https://www.youtube.com/watch?v=GQYd6MWKiLI|YouTube: Correcting Common Async/Await Mistakes in .NET 8 - Brandon Minnick - NDC London 2024]]   * [[https://www.youtube.com/watch?v=GQYd6MWKiLI|YouTube: Correcting Common Async/Await Mistakes in .NET 8 - Brandon Minnick - NDC London 2024]]
 +
 +
 +===== Best Pratices =====
 +
 +==== Never use .Wait() or .Result ====
 +
 +  * Always use await
 +  * If synchronous, use .GetAwaiter().GetResult()
 +
 +==== ValueTask ====
 +
 +
dotnet/async-await.1727073916.txt.gz · Last modified: 2024/09/23 15:45 by lhnyr4f3

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki