https://github.com/mull/sequential-promise
Run promises sequentially
https://github.com/mull/sequential-promise
Last synced: 5 months ago
JSON representation
Run promises sequentially
- Host: GitHub
- URL: https://github.com/mull/sequential-promise
- Owner: mull
- Created: 2016-08-16T14:57:56.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-27T13:17:27.000Z (almost 10 years ago)
- Last Synced: 2025-02-14T23:05:15.150Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A simple way to run promises in a sequence.
## How to use
[See example.js which is a runnable example](/example.js)
There's essentially two ways to run promises. The function expects an array of either type:
- promise
- function returning a promise
Which one to use boils down to:
- should the async operations start all at once
- should the next operation only start when the previous one finishes?
## TODO
- better example of exception handling
- tests for when promise rejects
- option to stop on first failure