Région de recherche :

Date :

https://developer.mozilla.org › ... › docs › Web › JavaScript › Reference › Statements › async_function

async function - JavaScript | MDN

Learn how to use async functions to write asynchronous, promise-based code in a cleaner style with await expressions. See syntax, description, examples, and browser compatibility of async functions.

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

JavaScript Async - W3Schools

Learn how to use async and await keywords to make promises easier to write and handle in JavaScript. See examples of async functions, await syntax, and browser support.

https://developer.mozilla.org › fr › docs › Web › JavaScript › Reference › Statements › async_function

async function - JavaScript | MDN

Une fonction asynchrone est une fonction précédée par le mot-clé async, et qui peut contenir le mot-clé await. async et await permettent un comportement asynchrone, basé sur une promesse (Promise), écrite de façon simple, et évitant de configurer explicitement les chaînes de promesse.

https://javascript.info › async-await

Async/await - The Modern JavaScript Tutorial

Learn how to use async/await syntax to work with promises in a more comfortable fashion. See examples of async functions, await keyword, error handling, and top-level await in modules.

https://fr.javascript.info › async-await

Async/await - JavaScript

async function f() { return Promise.resolve(1); } f().then(alert); // 1. Ainsi, async s’assure que la fonction renvoie une promesse, et enveloppe les non-promesses dans celle-ci. Assez simple, non ? Mais pas seulement. Il y a un autre mot-clé, await, qui ne fonctionne qu’à l’intérieur des fonctions async, et c’est plutôt cool. La syntaxe:

https://developer.mozilla.org › en-US › docs › Web › JavaScript › Reference › Operators › async_function

async function expression - MDN Web Docs

The async function keywords can be used to define an async function inside an expression. You can also define async functions using the async function declaration or the arrow syntax.

https://www.pierre-giraud.com › javascript-apprendre-coder-cours › async-await

Utiliser async et await pour créer des promesses plus lisibles en ...

Les mots clefs async et await sont un sucre syntaxique ajouté au JavaScript pour nous permettre d’écrire du code asynchrone : ils n’ajoutent aucune fonctionnalité en soi mais fournissent une syntaxe plus intuitive et plus claire pour définir des fonctions asynchrones et utiliser des promesses.

Utiliser async et await pour créer des promesses plus lisibles en ...

https://javascript.info › async

Promises, async/await - The Modern JavaScript Tutorial

Introduction: callbacks. Promise. Promises chaining. Error handling with promises. Promise API. Promisification. Microtasks. Async/await. Ctrl + ← Ctrl + →.

https://devdoc.net › ... › en-US › docs › Web › JavaScript › Reference › Statements › async_function.html

async function - JavaScript | MDN

Learn how to define and use async functions in JavaScript, which return Promises and can contain await expressions. See examples, syntax, specifications and browser compatibility.

https://stackoverflow.com › questions › 62196932

What are asynchronous functions in JavaScript? What is "async" and ...

Asynchronous functions have the following properties: async before a function declaration/expression turns the function into an async function. As the name suggests async function are executed asynchronously. An async function always returns a promise. It wraps any returned value in Promise.resolve(returnval).