Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Delors opened this issue Oct 25, 2017 · 1 comment
Closed

Comments

@Delors
Copy link

Delors commented Oct 25, 2017

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. )

@martijnhoekstra
Copy link

Duplicate of #9076?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants