promise-serial-exec
Execute promises sequentially, aka sequential Promise.all
.
Can be useful for CPU-intensive operations, databases, scrapping...
Usage
const serialExec = const urls = url1 url2 url3; // make the promise callables so they're executed on-demandconst promiseCalls = urls // urls will be fetched in order // will add a 0-500ms delay between each call