505 matching pages, found in 329 ms

Ask StyxWritten on your GPU machine; takes a few seconds the first time.

  1. MDN Web Docshttps://developer.mozilla.org › … › Async_JS › Promises
    More about developer.mozilla.org
    How to use promises - Learn web development | MDN

    Oct 20, 2025. … and fundamentals of using promises in JavaScript. Chaining and combining promises. Handling errors in promises. async and await : how they relate to promises, and why they are useful. In the previous article …

    0 points
  2. MDN Web Docshttps://developer.mozilla.org › … › Promise › all
    More about developer.mozilla.org
    Promise.all() - JavaScript | MDN

    Sep 1, 2026. … the iterable contains non-promise values, they will be ignored, but still counted in the returned promise array value (if the promise is fulfilled): js // All values are non-promises, so the …

    0 points
  3. MDN Web Docshttps://developer.mozilla.org › … › Async_JS › Implementing_a_promise-based_API
    More about developer.mozilla.org
    How to implement a promise-based API - Learn web development | MDN

    Apr 11, 2025. … use APIs that return promises. In this article we'll look at the other side — how to implement APIs that return promises. This is a much less common task than using promise-based …

    0 points
  4. MDN Web Docshttps://developer.mozilla.org › … › Glossary › Promise
    More about developer.mozilla.org
    Promise - Glossary | MDN

    Jul 11, 2025. Skip to main content Skip to search Promise A Promise is an object that's returned by a function that has not yet completed its work. The promise literally represents a promise made …

    0 points
  5. MDN Web Docshttps://developer.mozilla.org › … › Statements › async_function
    More about developer.mozilla.org
    async function - JavaScript | MDN

    Nov 17, 2026. … resolveAfter2Seconds() { console.log("starting slow promise"); return new Promise((resolve) => { setTimeout(() => { resolve("slow"); console.log("slow promise is done"); }, 2000); }); } function resolveAfter1Second() { console.log("starting fast promise"); return new Promise((resolve) => { setTimeout(() => { resolve("fast"); console.log …

    0 points
  6. MDN Web Docshttps://developer.mozilla.org › … › Promise › allSettled
    More about developer.mozilla.org
    Promise.allSettled() - JavaScript | MDN

    Oct 26, 2026. … takes an iterable of promises as input and returns a single Promise . This returned promise fulfills when all of the input's promises settle (including when an empty iterable is passed), with an …

    0 points
  7. MDN Web Docshttps://developer.mozilla.org › … › Promise › withResolvers
    More about developer.mozilla.org
    Promise.withResolvers() - JavaScript | MDN

    Oct 26, 2026. … containing the following properties: promise A Promise object. resolve A function that resolves the promise. For its semantics, see the Promise() constructor reference. reject A function that rejects the promise. For its …

    0 points
  8. MDN Web Docshttps://developer.mozilla.org › … › WebExtensions › Differences_between_API_implem…
    More about developer.mozilla.org
    Differences between API implementations - Mozilla | MDN

    Aug 25, 2026. … standard is to use promises. The promises approach offers significant advantages when dealing with chained asynchronous event calls. Firefox and Safari implement promises for the extensions API. With the introduction of Manifest …

    0 points
  9. MDN Web Docshttps://developer.mozilla.org › … › API › PromiseRejectionEvent
    More about developer.mozilla.org
    PromiseRejectionEvent - Web APIs | MDN

    Oct 8, 2024. … Fired when a JavaScript Promise is rejected, and after the rejection is handled by the promise's rejection handling code. unhandledrejection Fired when a JavaScript Promise is rejected but there is no rejection …

    0 points
  10. MDN Web Docshttps://developer.mozilla.org › … › API › USBDevice
    More about developer.mozilla.org
    USBDevice - Web APIs | MDN

    May 21, 2026. … operations canceled and their promises rejected. USBDevice.selectAlternateInterface() Returns a Promise that resolves when the specified alternative endpoint is selected. USBDevice.selectConfiguration() Returns a Promise that resolves when the specified configuration is selected. USBDevice.transferIn() Returns …

    0 points

Search for “Promises site:developer.mozilla.org” on Google, or add !ddg, !w and other shortcuts to any search.