InterruptibleConstructor
tinyscalautils.lang.InterruptibleConstructor
trait 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
In this article