-
-
Notifications
You must be signed in to change notification settings - Fork 804
feat: add utils/async/parallel
#1896
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
Conversation
/stdlib update-copyright-years |
What changes are needed here? |
This reverts commit cf255a1.
lib/node_modules/@stdlib/utils/async/parallel/docs/types/test.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/docs/types/test.ts
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/docs/types/test.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <[email protected]>
Signed-off-by: Athan <[email protected]>
lib/node_modules/@stdlib/utils/async/parallel/test/test.main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/test/test.main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/test/test.main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/test/test.main.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/test/test.factory.js
Outdated
Show resolved
Hide resolved
lib/node_modules/@stdlib/utils/async/parallel/test/test.factory.js
Outdated
Show resolved
Hide resolved
Signed-off-by: Athan <[email protected]>
Signed-off-by: Philipp Burckhardt <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks, @Deadreyo.
I ended up refactoring a bit. We seem to diverge somewhat across @stdlib/utils/async
in terms of whether the function returned by a factory
method should accept a done
argument. I ended up changing the implementation to require done
be provided to the returned function. This made a bit more sense in my mind in terms of how I'd expect the reusable function to be used. One could probably make the argument that we should update series-waterfall
similarly.
Resolves #1811 .
Description
This pull request adds a new package
utils/async/parallel
. Execute functions in parallel, passing the results of all functions to a final callback.Implemented as discussed in the issue.
Related Issues
utils/async/parallel
#1811Questions
No.
Other
No.
Checklist
@stdlib-js/reviewers