Skip to content

Scala console/REPL becomes unresponsive when using parallel collections #10566

Closed
@Delors

Description

@Delors

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions