Région de recherche :

Date :

https://www.w3schools.com › Js › js_promise.asp

JavaScript Promises - W3Schools

Learn how to use JavaScript Promises to handle asynchronous code with callbacks. See examples of how to create, resolve, reject and consume promises with timeout and file loading scenarios.

https://javascript.info › promise-basics

Promise - The Modern JavaScript Tutorial

A promise is a special JavaScript object that links the “producing code” and the “consuming code” together. In terms of our analogy: this is the “subscription list”. The “producing code” takes whatever time it needs to produce the promised result, and the “promise” makes that result available to all of the ...

https://developer.mozilla.org › fr › docs › Web › JavaScript › Guide › Using_promises

Utiliser les promesses - JavaScript | MDN - MDN Web Docs

Une promesse est un objet (Promise) qui représente la complétion ou l'échec d'une opération asynchrone. La plupart du temps, on « consomme » des promesses et c'est donc ce que nous verrons dans la première partie de ce guide pour ensuite expliquer comment les créer.

https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Global_Objects › Promise

Promise - JavaScript | MDN - MDN Web Docs

L'objet Promise (pour « promesse ») est utilisé pour réaliser des traitements de façon asynchrone. Une promesse représente une valeur qui peut être disponible maintenant, dans le futur voire jamais.

https://developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Global_Objects › Promise

Promise - JavaScript | MDN - MDN Web Docs

Learn how to use the Promise object to handle asynchronous operations in JavaScript. See examples of creating, chaining, and resolving promises with different methods and states.

https://fr.javascript.info › promise-basics

Promesse (promise) - JavaScript

Une promesse (promise) est un objet spécial en JavaScript qui lie le “producteur de code” et le “consommateur de code” ensemble. En comparant à notre analogie c’est la “liste d’abonnement”. Le “producteur de code” prend le temps nécessaire pour produire le résultat promis, et la “promesse” donne le résultat ...

https://www.toptal.com › javascript › javascript-promises

JavaScript Promises: A Tutorial With Examples - Toptal

What is a JavaScript promise? A promise is a method that eventually produces a value. It can be considered as the asynchronous counterpart of a getter function. Its essence can be explained as: promise.then(function(value) { // Do something with the 'value' });

JavaScript Promises: A Tutorial With Examples - Toptal

https://javascript.info › promise-api

Promise API - The Modern JavaScript Tutorial

Learn how to use the Promise class and its methods to handle asynchronous operations in JavaScript. See examples of Promise.all, Promise.allSettled, and other static methods.

https://www.freecodecamp.org › news › guide-to-javascript-promises

How Promises Work in JavaScript – A Comprehensive Beginner's Guide

Here are the topics we will cover: Why should you care about promises? What is a promise? How to create a promise in JavaScript. How to attach a callback to a promise. How to handle errors in a promise. How to handle many promises at once. What is the async/await syntax? How to create an async function in JavaScript. How to use the await keyword.

How Promises Work in JavaScript – A Comprehensive Beginner's Guide

https://fr.javascript.info › promise-api

Promesse API - JavaScript

Promesse API. Il y a 6 méthodes statiques dans la classe Promise. Nous allons rapidement couvrir leurs usages ici. Promise.all. Disons que nous voulons exécuter de nombreuses promesses en parallèle, et attendre qu’elles soient toutes prêtes. Par exemple, téléchargez plusieurs URLs en parallèle et traitez le contenu lorsque tout est terminé.