Factory method for an Interruptor defined in terms of a function from a function of
type Thread to Unit.
Factory method for an Interruptor defined in terms of a function from a function of
type Thread to Unit.
When this apply method is invoked, it will invoke the passed function's apply
method, forwarding along the passed Thread.
the function representing the interruption strategy
Companion object that provides a factory method for an
Interruptordefined in terms of a function from a function of typeThreadto Unit.