Re:Java 8 Features
by kodablah on Friday May 30, 2014 @11:34AM
(#7822318)
It reuses the ForkJoin common pool and doesn't have a way for you to specify the thread pool, factory, or anything from what I can see. This is where implicit execution contexts in Scala really help as much as people hate implicits. Of course you have to use the tasksupport setter in Scala for parallel collections instead , but at least it's configurable.
[ Parent
| on HN ]
It's configurable !
ForkJoinPool forkJoinPool = new ForkJoinPool(2); forkJoinPool.submit(() -> // write your parallel query here ).get();
Re:Java 8 Features
by frowaway001 on Friday May 30, 2014 @02:57PM
(#7823379)
I think we can all agree that nobody wants to writ code this way.