Break from dynamically closest enclosing breakable block using this exact
Breaks
instance.
Break from dynamically closest enclosing breakable block using this exact
Breaks
instance.
This might be different than the statically closest enclosing block!
A block from which one can exit with a break
.
A block from which one can exit with a break
. The break
may be
executed further down in the call stack provided that it is called on the
exact same instance of Breaks
.
This variant enables the execution of a code block in case of a break()
:
This variant enables the execution of a code block in case of a break()
:
tryBreakable { for (...) { if (...) break() } } catchBreak { doCleanup() }
An object that can be used for the break control abstraction. Example usage: