object Interruptor
Companion object that provides a factory method for an Interruptor
defined
in terms of a function from a function of type Thread
to Unit.
- Source
- Interruptor.scala
- Alphabetic
- By Inheritance
- Interruptor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def apply(fun: (Thread) => Unit): Interruptor
Factory method for an
Interruptor
defined in terms of a function from a function of typeThread
to Unit.Factory method for an
Interruptor
defined in terms of a function from a function of typeThread
to Unit.When this
apply
method is invoked, it will invoke the passed function'sapply
method, forwarding along the passedThread
.- fun
the function representing the interruption strategy