I have a collection on which I call .par
, like this:
myCollection.par.map(element => longRunningOperation(element)).seq
println("after map")
Will calling .seq
guarantee all threads are joined before continuing, and all maps completed, before calling println?