How do I enable continuations in Scala?
问题 Question says it all. (Yet, the details of how to get access to the shift and reset operations has changed over the years. Old blog entries and Stack Overflow answers may have out of date information.) See also What are Scala continuations and why use them? which talks about what you might want to do with shift and reset once you have them. 回答1: Scala 2.11 The easiest way is to use sbt: scalaVersion := "2.11.6" autoCompilerPlugins := true addCompilerPlugin( "org.scala-lang.plugins" % "scala