-
Notifications
You must be signed in to change notification settings - Fork 254
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
Does not work with enumerators #174
Comments
keeping the lambda on the main thread sounds like a good idea ... On Fri, May 6, 2016 at 2:02 PM, Christopher J. Bottaro <
|
Not sure if it helps, but you don’t need the enum = File.open("/usr/share/dict/words").each_line
Parallel.map(enum, &:upcase) |
But won't that load the entire file into memory because of this? |
so it will call |
first we need a solution to this:
it works with blocks, so it's not completely broken:
so we need to find something that works in multiple threads ... we could also rebuild the parallel process execution to use not use threads, by using |
Hello,
This code doesn't work:
It results in
fiber called across threads (FiberError)
.I poked around in the code; why are there 4 threads "feeding" the processes? Why not just have the main thread pluck items from the lambda to give to an available worker?
Thanks!
The text was updated successfully, but these errors were encountered: