doesn't do that.
What I want is receive N (N = cpu cores) entries from a collection in parallel to process them.
I don't like how channel.receive() waits forever or throws an exception.
What would be a simple solution for that?
And is also works great! That's exactly what I was looking for. Thank you!
I will copy the function and mention arrow in my apps third party libraries 🙂