About 51 results
Open links in new tab
  1. c# - How and when to use ‘async’ and ‘await’ - Stack Overflow

    Jan 22, 2013 · From my understanding one of the main things that async and await do is to make code easy to write and read - but is using them equal to spawning background threads to …

  2. Como eu posso utilizar o async/await do javascript?

    Jun 8, 2017 · Vi que agora é possível utilizar as keywords async e await no javascript, mas como isso realmente funciona?

  3. Understanding async / await in C# - Stack Overflow

    I'm starting to learn about async / await in C# 5.0, and I don't understand it at all. I don't understand how it can be used for parallelism. I've tried the following very basic program: …

  4. When and why should I use ConfigureAwait(false) in C# async/await?

    Dec 16, 2025 · The reason for the deadlock is that the continuation after the await client.GetStringAsync will be posted to the UI message loop, but the message loop is stopped, …

  5. Using async/await with a forEach loop - Stack Overflow

    Are there any issues with using async / await in a forEach loop? I'm trying to loop through an array of files and await on the contents of each file. import fs from 'fs-promise' async function …

  6. c# - await await vs Unwrap () - Stack Overflow

    Jan 16, 2016 · await ActionAsync().Unwrap(); is definitely easier to read between the two. That's about where the differences end.

  7. Combination of async function + await + setTimeout

    Oct 23, 2015 · I am trying to use the new async features and I hope solving my problem will help others in the future. This is my code which is working: async function asyncGenerator() { // …

  8. async/await - when to return a Task vs void? - Stack Overflow

    If there's no reason to disallow having the caller await your task, why disallow it? async methods that return void are special in another aspect: they represent top-level async operations, and …

  9. C# 8 understanding await using syntax - Stack Overflow

    C# 8 understanding await using syntax [duplicate] Asked 6 years, 3 months ago Modified 4 years, 2 months ago Viewed 91k times

  10. How can I use async/await at the top level? - Stack Overflow

    Use top-level await (proposal, MDN; ES2022, broadly supported in modern environments) that allows top-level use of await in a module. or Use a top-level async function that never rejects …