Library implementation of nonlocal return.
Usage:
import scala.util.control.NonLocalReturns.*
returning { ... throwReturn(x) ... }
This API has been deprecated. Its functionality is better served by
scala.util.boundary in place ofreturningscala.util.break in place ofthrowReturnThe new abstractions work with plainRuntimeExceptions and are more performant, since returns within the scope of the same method can be rewritten by the compiler to jumps.
[Since version 3.3]Use scala.util.boundary instead[Since version 3.3]Use scala.util.boundary.Break insteadEnable nonlocal returns inop.
Enable nonlocal returns inop.
[Since version 3.3]Use scala.util.boundary insteadPerforms a nonlocal return by throwing an exception.
Performs a nonlocal return by throwing an exception.
[Since version 3.3]Use scala.util.boundary.break instead