https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Global_Objects › Promise
Promise - JavaScript | MDNL'interface Promise représente un intermédiaire (proxy) vers une valeur qui n'est pas nécessairement connue au moment de la création de la promesse. Cela permet d'associer des gestionnaires au succès éventuel d'une action asynchrone et à la raison d'une erreur.
The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. To learn about the way promises work and how you can use them, we advise you to read Using promises first.
https://www.w3schools.com › Js › js_promise.asp
JavaScript Promises - W3SchoolsPromise Object Properties. A JavaScript Promise object can be: Pending. Fulfilled. Rejected. The Promise object supports two properties: state and result. While a Promise object is "pending" (working), the result is undefined. When a Promise object is "fulfilled", the result is a value.
Vidéos
https://developer.mozilla.org › fr › docs › Web › JavaScript › Guide › Using_promises
Utiliser les promesses - JavaScript | MDNPromise.resolve () et Promise.reject () sont des méthodes qui permettent de créer des promesses déjà tenues ou rompues. Promise.all () et Promise.race () sont deux outils de composition qui permettent de mener des opérations asynchrones en parallèle.
https://javascript.info › promise-basics
Promise - The Modern JavaScript TutorialThe promise object returned by the new Promise constructor has these internal properties: state — initially "pending", then changes to either "fulfilled" when resolve is called or "rejected" when reject is called. result — initially undefined, then changes to value when resolve (value) is called or error when reject (error) is called.
https://javascript.info › promise-api
Promise API - The Modern JavaScript TutorialThe JavaScript language Promises, async/await. February 20, 2022. Promise API. There are 6 static methods in the Promise class. We’ll quickly cover their use cases here. Let’s say we want many promises to execute in parallel and wait until all of them are ready.
https://web.dev › articles › promises
JavaScript Promises: an introduction - web.devJavaScript Promises: an introduction. Stay organized with collections Save and categorize content based on your preferences. Promises simplify deferred and asynchronous computations. A promise represents an operation that hasn't completed yet. Jake Archibald. Developers, prepare yourself for a pivotal moment in the history of web development.
A Promise is a proxy for a value not necessarily known when the promise is created. It allows you to associate handlers with an asynchronous action's eventual success value or failure reason.
https://www.toptal.com › javascript › javascript-promises
A JavaScript Promises Tutorial, Including the RSVP Library - ToptalWhat properties does a promise have? A promise can be in one of three states: pending, fulfilled, or rejected. When created, the promise is in pending state.
https://zestedesavoir.com › tutoriels › 446 › les-promesses-en-javascript
Les promesses en JavaScript - Zeste de SavoirSi vous avez suivi les nouveautés de la norme EcmaScript 6 — plus communément appelée ES6 — vous savez sans doute qu’un ajout non négligeable a été fait au sein du langage JavaScript : les promesses (Promise pour les intimes). Concrètement, les promesses vont permettre plusieurs choses :