Tag: Promise
4 posts
-
Node.js Async Programming: Callbacks and Promises
Learn Node.js async I/O: callbacks, error-first style, Promises, async/await, the event loop, streams, and patterns for APIs and file pipelines.
-
JavaScript Async Programming: Promises, async/await, and the Event Loop Without the Usual Bugs
JavaScript asynchronous code explained: callbacks vs Promises, async/await, Promise combinators, the microtask queue, and fixes for real bugs such as unhandled rejections, timeouts that never cancel, retries that skip HTTP errors, and duplicate cached requests.
-
Debugging Intermittent Unhandled Promise Rejections in Node.js: A Walkthrough
Why a Node.js API crashes with unhandled rejections only sometimes: early-created promises, return without await, Express 4 async routes, and fixes that hold.
-
C++ std::future and std::promise: Passing Results Between Threads vs std::async
How std::future and std::promise pass a result between threads in C++, and the difference between this and using std::async directly.