Promise Tips: When do I need to create my own Promise instance?
It's not always needed.
Jan 28, 20224 min read445

Search for a command to run...

Series
This series will give you some tips for working with the Promise APIs more effectively, and avoiding common pitfalls.
It's not always needed.

Promise chains You can create a chain of Promises by returning new Promises from a then handler. Here's a simple example that chains 3 promises together: Promise.resolve(1) .then(id => { console.log(`Success: ${id}`); return Promi...
