Promise support
See original GitHub issueAdd promise support to allow mix different tasks:
async.waterfall([
function (done) {
// Do something and call done()
fs.readFile(filepath, done);
},
function(content) {
// Do something and return Promise
return mongoose.models.file.create({
name: filepath,
content: content
});
}
], (err) => {
if (err) {
console.error(err);
}
});
Issue Analytics
- State:
- Created 8 years ago
- Comments:22 (4 by maintainers)
Top Results From Across the Web
PROMISE Support Center
Tech Support Contact Information: ; Promise Global Support email: support@promise.com. PROMISE U.S.A.. Phone : +1 (408) 645-3469. Phone : +1 (408) 876-5886 ...
Read more >Promises | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end ... A promise represents the eventual result of an asynchronous operation....
Read more >Promise support definition and meaning - Collins Dictionary
If you support someone or their ideas or aims, you agree with them, and perhaps help them because you want them to succeed....
Read more >Promise - JavaScript - MDN Web Docs
The Promise object represents the eventual completion (or failure) of an ... used to wrap functions that do not already support promises.
Read more >PROMISe - PA Department of Human Services
PROMISe. Please use the links below to find the information you need. ... Provide high-quality supports and protections to vulnerable Pennsylvanians.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think just like there is async.asyncify there could be a async.promisify function.
Then I can just await async.promisify(async.mapLimit(x,10, mapper))
Here’s another package that promisifies all the available async methods: https://github.com/eladnava/koa-async