-
Notifications
You must be signed in to change notification settings - Fork 490
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
Treating a parallel iterator as a serial iterator #850
Comments
could you tell us more about what you are doing ? that would help figuring out whether it is desirable or not. currently you cannot turn back to sequential. |
The context isn't really important here. It's not a situation I'd like to be in, but it's one that would be useful to have rayon support, given that I'd imagine pulling out items serially would be relatively trivial to do. I have an API that produces an |
It's not trivial, or we would have solved #210 a long time ago. 😉 But there may be reasonable domain-specific options, depending on your needs. |
Ah, an issue for the same thing! I'll close in favour of that, thanks for bringing it to my attention. |
I'm the a peculiar situation that requires me to take an
impl ParallelIterator
and treat it as a standard, serial iterator. Intuitively, it feels like it should be trivially safe to pull items out of a parallel iterator serially to get back animpl Iterator
, but I don't see any API features in rayon that permit this.Is this a) possible as I presume it is and b) something that's desirable?
The text was updated successfully, but these errors were encountered: