-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Late to the party #21
Comments
Quite late 😉 This seems like a pretty cool use of |
Haha, thanks. I wanted to write anyway. The idea of a simple way to do async composition is just so pleasant, not only for gulp but in general. The way bach api looks like and composes is just, at least for me, what it should be to compose async functions. Yeah, control over the arguments that will construct the stack is really important otherwise all is a nightmare. Nesting, and the timing thing (or any other thing like error handling that has to be done between start and end) was the hardest to figure out. For that using async-done for completion of everything but callbacks was the solution. Provide a callback from outside and use it to glue everything. I'll write some pseudocode: |
Ok |
So yeah 😄, anyway, I write this here in case it is something you find interesting.
tl;dr proposal for a non-evented approach for undertaker, maybe not using what I've done but something better.
I have been working for a while now around the same idea of composing async functions using async-done and have come up with a different approach for all of this with no events and one method for
series
and/orparallel
. This is how it looks like:The same logic applies for nesting one "
stack
" with another as you do with bach. As you see I have added path to regex to the mix (because why not) and string arguments don't have to necessarily be separated by a comma. A space is just fine.The text was updated successfully, but these errors were encountered: