Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

Questions tagged [promise]

"Promises" are a particular tactic for deferred computing, suitable for several styles of concurrency: thread and event loop concurrency for local computation, and both synchronous and asynchronous remote messaging.

Filter by
Sorted by
Tagged with
4 votes
1 answer
809 views

Read files from a directory using Promises

Using javascript functions and the old way of doing things I wrote a piece of code to copy the first file in a directory to a file Test. ...
Martin York's user avatar
  • 95.2k
4 votes
1 answer
177 views

Implementing `Promise.all()`

I took a stab at implementing Promise.all(): ...
Tobi Alafin's user avatar
  • 1,796
3 votes
2 answers
321 views

Promise.jsm demo of Promise.all and Promise.defer

I created this demo example for MDN documentation to show how to use Promise.all and Promise.defer in user created promise. I ...
Noitidart's user avatar
  • 261
3 votes
0 answers
638 views

Blocking Promise-driven queues with ECMAScript's async/await and generators

I implemented an AsyncQueue, whose dequeue() operation returns a Promise. The ...
ComFreek's user avatar
  • 751
0 votes
2 answers
72 views

Achieve error differentiation in Promises

Background I have a REST API using MongoDB, Node.js and Express that makes a request to my NoSQL DB and depending on different results, I want to differentiate which error I send the customer. ...
Flame_Phoenix's user avatar