trait
InterruptHandler extends PartialFunction[Throwable, Unit]
Abstract Value Members
-
abstract
def
onInterrupt(t: Throwable): Unit
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
andThen[C](k: (Unit) ⇒ C): PartialFunction[Throwable, C]
-
final
def
apply(t: Throwable): Unit
-
def
applyOrElse[A1 <: Throwable, B1 >: Unit](x: A1, default: (A1) ⇒ B1): B1
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
compose[A](g: (A) ⇒ Throwable): (A) ⇒ Unit
-
-
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isDefinedAt(x: Throwable): Boolean
-
final
def
isInstanceOf[T0]: Boolean
-
def
lift: (Throwable) ⇒ Option[Unit]
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
def
runWith[U](action: (Unit) ⇒ U): (Throwable) ⇒ Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from (Throwable) ⇒ Unit
Embeds an "interrupt handler" into a Promise.
This is a total handler such that it's defined on any Throwable. Use Promise.setInterruptHandler() if you need to leave an interrupt handler undefined for certain types of exceptions.
Example: (
p
andq
are equivalent, butp
allocates less):Later calls to
setInterruptHandler
on a promise mixing in this trait will replace the embedded handler.