You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitting a lambda as a callable and retrieving the future on the same line causes the REPL to hang.
Welcome to Scala2.12.0 (JavaHotSpot(TM) 64-BitServerVM, Java1.8.0_112).
Type in expressions for evaluation. Ortry:help.
scala>importjava.util.concurrent._importjava.util.concurrent._
scala>valexec=Executors.newCachedThreadPool
exec: java.util.concurrent.ExecutorService= java.util.concurrent.ThreadPoolExecutor@7512870b[Running, pool size =0, active threads =0, queued tasks =0, completed tasks =0]
Submitting a lambda as a callable and retrieving the future on the same line causes the REPL to hang.
OK, because not a lambda:
OK, because retrieval separate from submission:
Hangs:
This was discovered in the real world by attempting
scalaz.concurrent.Task("foo").run
, which also hangs.The same snippets all complete successfully on Scala 2.11.8.
Maybe related to SI-9076?
The text was updated successfully, but these errors were encountered: