Closed
Description
Start the scala console (2.12) and paste the following snippet:
List(1,2).par.foreach(println)
After pressing return nothing will happen; when ".par" is removed, the code works as expected.
(The example works as soon as the code snippet is put in a def: object o { def run = List(1,2).par.foreach(println) }
and calling o.run runs fine. )
Metadata
Metadata
Assignees
Labels
No labels