The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

heimrk (1) [Avatar] Offline
In section 6.1.1 there is one example where parallel(), sequential() and parallel() are called on a stream, to illustrate that one can control which operations you want to perform in parallel and which ones you want to perform sequential.
But is it really correct that one can alternate between parallel and sequential in the same pipeline?
The sequential() and parallel() sets the flag sourceStream.parallel, and to me it seems that the value of this flag when the terminal operation is called decides whether the whole pipeline will executed in sequence or in parallel. ( evaluate() )