FutureBase
io.ino.solrs.future.FutureBase
Attributes
- Graph
- Supertypes
- Known subtypes
Members list
Concise view
Value members
Concrete methods
protected def handleFailure[U >: T](p: Promise[U], pf: PartialFunction[Throwable, U], t: Throwable): Unit
protected def handleWithFailure[U >: T](p: Promise[U], pf: PartialFunction[Throwable, Future[U]], t: Throwable): Any
Inherited methods
Creates a new future that will handle any matching throwable that this future might contain by assigning it a value of another future.
Creates a new future that will handle any matching throwable that this future might contain by assigning it a value of another future.
If there is no match, or if this future contains a valid result then the new future will contain the same result.
Example:
val f = future { Int.MaxValue }
future (6 / 0) handle { case e: ArithmeticException => f } // result: Int.MaxValue
Like recoverWith from std lib, related to rescue/handle in twitter.
Attributes
- Inherited from:
- Future
Attributes
- Inherited from:
- Future