mylist.stream()
.filter(m -> m.isokay() != null)
.forEach(m -> m.dosomething()));
For this code, is it running on multiple threads?
If not, how can I do it? I want each m.dosomething() to run on seperate threads to speed this work up.
parallelStream()..parallelStream()will make use of theForkJoinPool.commonPool().