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 perform long …

  2. 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() { // other code w...

  3. 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, so the continuation will …

  4. 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 (unless you …

  5. 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?

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

    async and await Now, you may wondering if all Task is asynchronous, what is the purpose of Task.Delay ? next, let's really delay the running thread by using async and await ... async tell caller, I …

  7. 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 print...

  8. 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.

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

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

  10. How does javascript async/await actually work? - Stack Overflow

    Jul 23, 2019 · An async function can contain an await expression that pauses the execution of the async function Just the async function itself pauses execution, the function that called it goes on then. If …