abstract class OnSuccess[-T] extends CallbackBridge[T]
Callback for when a Future is completed successfully SAM (Single Abstract Method) class
Java API
- Source
- Future.scala
Linear Supertypes
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- OnSuccess
- CallbackBridge
- AbstractPartialFunction
- PartialFunction
- Function1
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new OnSuccess()
Abstract Value Members
-
abstract
def
onSuccess(result: T): Unit
This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed
This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed
- Annotations
- @throws( classOf[Throwable] )
Concrete Value Members
-
def
andThen[C](k: (BoxedUnit) ⇒ C): PartialFunction[T, C]
- Definition Classes
- PartialFunction → Function1
-
final
def
apply(t: T): BoxedUnit
- Definition Classes
- CallbackBridge → AbstractPartialFunction → Function1
-
def
applyOrElse[A1 <: T, B1 >: BoxedUnit](x: A1, default: (A1) ⇒ B1): B1
- Definition Classes
- PartialFunction
-
def
compose[A](g: (A) ⇒ T): (A) ⇒ BoxedUnit
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
final
def
isDefinedAt(t: T): Boolean
- Definition Classes
- CallbackBridge → PartialFunction
-
def
lift: (T) ⇒ Option[BoxedUnit]
- Definition Classes
- PartialFunction
-
def
orElse[A1 <: T, B1 >: BoxedUnit](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]
- Definition Classes
- PartialFunction
-
def
runWith[U](action: (BoxedUnit) ⇒ U): (T) ⇒ Boolean
- Definition Classes
- PartialFunction
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any