-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using async with Promises #1086
Comments
You can wrap any function that returns a Promise with |
See #956 for discussion |
Is there a way to make async control flow functions to return a promise instead of passing a callback node-style?
can be changed to:
Am I wrong? It's not cool mixing callbacks and promises, I just want to use promises and async controls utilities without much boilerplate. |
Sure, but it should be pretty straightforward to return a promise for all
async utility functions if no callback is provided.
Perhaps it's in the roadmap? Maybe I can help.
…On Fri, Nov 25, 2016 at 3:59 PM Graeme Yeates ***@***.***> wrote:
@demian85 <https://github.com/demian85> consider using
https://github.com/Kikobeats/promise-async or
https://github.com/eladnava/koa-async
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1086 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAcuZuH4tX0CWcOYNyFfmKy1Rfukbsajks5rBzAtgaJpZM4H5KDY>
.
|
https://www.npmjs.com/package/google-spreadsheet use that in doc, took me a while to understand there is no promises involved lmao, have a great day everyone |
Any idea if this is possible or on the way?
Thanks in advance.
The text was updated successfully, but these errors were encountered: