scala.util.control

class Breaks

[source: scala/util/control/Breaks.scala]

class Breaks
extends AnyRef
An object that can be used for the break control abstraction. Example usage:

  import Breaks.{break, breakable}

  breakable {
    for (...) {
      if (...) break
    }
  }
Direct Known Subclasses:
Breaks

Method Summary
def break : Unit
def breakable (op : => Unit) : Unit
A block from which one can exit with a `break''.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def breakable(op : => Unit) : Unit
A block from which one can exit with a `break''.

def break : Unit