tinyscalautils.control
Members list
Type members
Classlikes
Attributes
- Source
- interruptibly.scala
- Supertypes
- Self type
Value members
Concrete methods
Checks for interrupts before running code.
Checks for interrupts before running code.
This can be used to make loops more responsive to interrupts, e.g.:
while condition do interruptibly {
...
}
Note that the body of the loop can remain unresponsive. To deal with that, use tinyscalautils.threads.runAsync.
Attributes
- Since
-
1.0
- Source
- interruptibly.scala
Captures java.lang.StackOverflowError and replaces with tinyscalautils.lang.StackOverflowException in the given code.
Captures java.lang.StackOverflowError and replaces with tinyscalautils.lang.StackOverflowException in the given code.
Attributes
- Since
-
1.1
- Source
- noStackOverflow.scala
Deprecated methods
Attributes
- Deprecated
- true
- Source
- noStackOverflow.scala
Givens
Givens
Attributes
- Source
- interruptibly.scala
Extensions
Extensions
An SML-like operator that evaluates two arguments and returns the value of the first one. This is simply a mechanism to avoid naming an intermediate result: x before y
is strictly equivalent to {val r=x; y; r}
.
An SML-like operator that evaluates two arguments and returns the value of the first one. This is simply a mechanism to avoid naming an intermediate result: x before y
is strictly equivalent to {val r=x; y; r}
.
Attributes
- Since
-
1.5.0
- Source
- before.scala
Simple repetitions.
Simple repetitions.
Evaluates an expression a given number of times. e.g.:
42 times:
...
Attributes
- Throws
-
IllegalArgumentException
if the target number is negative.
- Since
-
1.0
- Source
- times.scala