505 matching pages, found in 329 ms
Ask StyxWritten on your GPU machine; takes a few seconds the first time.
-
MDN Web Docshttps://developer.mozilla.org › … › Async_JS › PromisesHow to use promises - Learn web development | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › Promise › allPromise.all() - JavaScript | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › Async_JS › Implementing_a_promise-based_APIHow to implement a promise-based API - Learn web development | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › Glossary › PromisePromise - Glossary | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › Statements › async_functionasync function - JavaScript | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › Promise › allSettledPromise.allSettled() - JavaScript | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › Promise › withResolversPromise.withResolvers() - JavaScript | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › WebExtensions › Differences_between_API_implem…Differences between API implementations - Mozilla | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › API › PromiseRejectionEventPromiseRejectionEvent - Web APIs | MDN
More about developer.mozilla.org
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 …
-
MDN Web Docshttps://developer.mozilla.org › … › API › USBDeviceUSBDevice - Web APIs | MDN
More about developer.mozilla.org
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 …
Search for “Promises site:developer.mozilla.org” on Google, or add !ddg, !w and other shortcuts to any search.