Tagged articles

Promise

107 articles · Page 2 of 2
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
May 21, 2017 · Frontend Development

Master JavaScript Event Loop: From Basics to Advanced Examples

This article explains the JavaScript event loop in depth, covering execution contexts, call stacks, macro‑ and micro‑tasks, and how APIs like setTimeout, Promise, process.nextTick, and setImmediate interact, using clear diagrams and step‑by‑step examples for both browsers and Node.js.

Node.jsPromiseTask queue
0 likes · 12 min read
Master JavaScript Event Loop: From Basics to Advanced Examples
Node Underground
Node Underground
Sep 7, 2016 · Fundamentals

3 Proven Bluebird Promise Performance Hacks Every JavaScript Developer Should Know

This article highlights three of the most valuable performance optimization techniques used in the widely adopted Bluebird Promise library—minimizing function object allocation, reducing object size, and employing lazy‑overwritten no‑op functions—to help developers write faster, more efficient JavaScript code.

BluebirdJavaScriptOptimization
0 likes · 2 min read
3 Proven Bluebird Promise Performance Hacks Every JavaScript Developer Should Know
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Aug 5, 2016 · Frontend Development

Mastering JavaScript Promises: Common Pitfalls and Best Practices

This article explains the fundamentals of JavaScript Promises, illustrates typical mistakes such as callback pyramids and missing returns, and demonstrates proper usage of chaining, Promise.all, resolve variations, error handling with catch, and state propagation to write clean, maintainable asynchronous code.

AsynchronousCodingJavaScript
0 likes · 23 min read
Mastering JavaScript Promises: Common Pitfalls and Best Practices
Aotu Lab
Aotu Lab
Jan 13, 2016 · Frontend Development

Mastering JavaScript Promises: From Basics to Advanced Patterns

This article introduces JavaScript Promises, covers their history, demonstrates how to promisify callbacks, use Promise.all for parallel tasks, chain with then, handle execution order, and implement custom cancellation, providing clear code examples and best‑practice guidance.

FrontendJavaScriptPromise
0 likes · 9 min read
Mastering JavaScript Promises: From Basics to Advanced Patterns