abstract class OnComplete[-T] extends CallbackBridge[Try[T]]
Ordering
- Alphabetic
- By Inheritance
Inherited
- OnComplete
- CallbackBridge
- AbstractPartialFunction
- PartialFunction
- Function1
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new OnComplete()
Abstract Value Members
- abstract def onComplete(failure: Throwable, success: T): Unit
This method will be invoked once when/if a Future that this callback is registered on becomes completed with a failure or a success.
This method will be invoked once when/if a Future that this callback is registered on becomes completed with a failure or a success. In the case of success then "failure" will be null, and in the case of failure the "success" will be null.
- Annotations
- @throws(classOf[Throwable])
Concrete Value Members
- def andThen[C](k: [BoxedUnit, C]): [Try[T], C]
- Definition Classes
- PartialFunction
- def andThen[C](k: (BoxedUnit) => C): [Try[T], C]
- Definition Classes
- PartialFunction → Function1
- final def apply(t: Try[T]): BoxedUnit
- Definition Classes
- CallbackBridge → AbstractPartialFunction → Function1
- def applyOrElse[A1 <: Try[T], B1 >: BoxedUnit](x: A1, default: (A1) => B1): B1
- Definition Classes
- PartialFunction
- def compose[R](k: PartialFunction[R, Try[T]]): PartialFunction[R, BoxedUnit]
- Definition Classes
- PartialFunction
- def compose[A](g: (A) => Try[T]): (A) => BoxedUnit
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def elementWise: ElementWiseExtractor[Try[T], BoxedUnit]
- Definition Classes
- PartialFunction
- final def isDefinedAt(t: Try[T]): Boolean
- Definition Classes
- CallbackBridge → PartialFunction
- def lift: (Try[T]) => [BoxedUnit]
- Definition Classes
- PartialFunction
- def orElse[A1 <: Try[T], B1 >: BoxedUnit](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
- def runWith[U](action: (BoxedUnit) => U): (Try[T]) => Boolean
- Definition Classes
- PartialFunction
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- def unapply(a: Try[T]): [BoxedUnit]
- Definition Classes
- PartialFunction
Callback for when a Future is completed with either failure or a success SAM (Single Abstract Method) class
Java API