Skip to content
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

WorkerPool and AsyncCollector - minor fixes #16325

Merged
merged 3 commits into from
May 13, 2016
Merged

Conversation

amitmurthy
Copy link
Contributor

A few minor fixes identified during the course of #15975 .

Specifically

  • workerpool checking for a valid worker
  • default_worker_pool when no workers have been added
  • error handling in AsyncCollector
  • handling asyncmap and remote when there are more than 100 workers

@@ -4,7 +4,8 @@
"""
AsyncCollector(f, results, c...; ntasks=100) -> iterator

Apply f to each element of c using at most 100 asynchronous tasks.
Apply f to each element of c using at most `max(100, nworkers())` asynchronous
tasks.
For multiple collection arguments, apply f elementwise.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should f and c be highlighted as code here?

@amitmurthy amitmurthy merged commit 69d05ae into master May 13, 2016
@amitmurthy amitmurthy deleted the amitm/minor_fixes branch May 13, 2016 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants