web:javascript:es6:promises
Ceci est une ancienne révision du document !
Promesses
Les promesses sont disponibles dans ES6.
If you have to debug a huge codebase, and you don't know which Promise can potentially hide an issue, you can use the unhandledRejection hook. It will print out all unhandled Promise rejections.
process.on('unhandledRejection', (err) => { console.log(err) })
web/javascript/es6/promises.1483638476.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)