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

    Jan 22, 2013 · If every async method need to have an await inside of it, and a await can only be done on a methods with async, when does it stop?

  2. 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: …

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

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

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

  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. 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. How to await an asynchronous function? - Stack Overflow

    Jan 17, 2017 · Await is used to wait for a promise resolving inside of async function. According to a mdn - async function can contain an await expression, that pauses the execution of the …

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

    Normally, you would want to return a Task. The main exception should be when you need to have a void return type (for events). If there's no reason to disallow having the caller await your …