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

Support a parallel iterator getting more work to do from a normal iterator #400

Closed
golddranks opened this issue Aug 7, 2017 · 2 comments

Comments

@golddranks
Copy link

golddranks commented Aug 7, 2017

The motivation is as follows: I'm getting asynchronously produced values from a channel. For each value, there is some independent, CPU-heavy work to do. I want to maximise the resource use, and do the work in parallel if there is CPU power available and there's values available from the channel.

The types I: Iterator<Item=T> and/or Receiver<T> don't implement the IntoParallelIterator trait. Is there any reason for that?

@garro95
Copy link

garro95 commented Aug 18, 2017

Maybe similar to #46

@cuviper
Copy link
Member

cuviper commented Oct 17, 2017

Yes, let's track it in #46.

@cuviper cuviper closed this as completed Oct 17, 2017
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

No branches or pull requests

3 participants