InterruptibleConstructor

tinyscalautils.lang.InterruptibleConstructor

Checks for thread interrupts at construction time.

This can be mixed in to make code more responsive to interrupts:

class MyFancyClass extends SomeInterface with InterruptibleConstructor:
 ...

If a thread is interrupted and then attempts to create an instance of MyFancyClass, an InterruptedException will be thrown.

Attributes

Since

1.0

Source
InterruptibleConstructor.scala
Graph
Supertypes
class Object
trait Matchable
class Any
In this article