Why one can't submit an alternative thread pool to the streams API?
Cay Horstmann
cay.horstmann at gmail.com
Sat Oct 12 15:52:17 UTC 2019
There is a way to do it--see for example
https://blog.krecan.net/2014/03/18/how-to-specify-thread-pool-for-java-8-parallel-streams/
It certainly isn't elegant. Perhaps a better way might be an argument to
the parallel method that specifies the pool to be used?
Il 12/10/19 17:41, edward ha scritto:
> One can't submit an alternative thread pool to the streams API. A
> default ForkJoinPool is used. Is there any good reason that is so or
> can I start working on it and propose JEP?
>
More information about the jdk-dev
mailing list