0

I have a continuous loop in scala worksheet represented by the rotating bar.

object sheet1 {
   def loop() : Int = loop
   /   <-- rotating bar
   loop()
}

Is there a way to break out of the loop?

NOTE:

I am asking how to terminate execution within Scala Worksheet. I am NOT asking how to terminate out of a loop in scala. This question I am asking is definitely NOT the same as this: How do I break out of a loop in Scala?

Community
  • 1
  • 1
Chris Snow
  • 23,813
  • 35
  • 144
  • 309
  • possible duplicate of [How do I break out of a loop in Scala?](http://stackoverflow.com/questions/2742719/how-do-i-break-out-of-a-loop-in-scala) – Richard Sitze Aug 02 '13 at 16:43
  • I don't think this is a duplicate of the marked question; I know it seems like 'breaking out of a loop in Scala' seems to indicate it's a dupe, but it's a different thing from what is being asked here. – Andrew Barber Aug 05 '13 at 13:14

1 Answers1

2

You can press the escape key (or any key for that matter) to kill the worksheet. It's on the Getting Started documentation, under Verbose Output

Roberto
  • 987
  • 1
  • 9
  • 21