Packages

object FutureUtil

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FutureUtil
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def catchAndDoNotAwait(future: => Future[_], failureMessage: => String, onFailure: (Throwable) => Unit = _ => (), level: => Level = Level.ERROR)(implicit loggingContext: ErrorLoggingContext): Unit

    Variant of doNotAwait that also catches non-fatal errors thrown while constructing the future.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. lazy val defaultStackTraceFilter: (Thread) => Boolean
  8. def doNotAwait(future: Future[_], failureMessage: => String, onFailure: (Throwable) => Unit = _ => (), level: => Level = Level.ERROR, closeContext: Option[CloseContext] = None, logPassiveInstanceAtInfo: Boolean = false)(implicit loggingContext: ErrorLoggingContext): Unit

    Discard future and log an error if it does not complete successfully.

    Discard future and log an error if it does not complete successfully. This is useful to document that a Future is intentionally not being awaited upon.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def logOnFailure[T](future: Future[T], failureMessage: => String, onFailure: (Throwable) => Unit = _ => (), level: => Level = Level.ERROR, closeContext: Option[CloseContext] = None, ignorePassiveInstance: Boolean = false)(implicit loggingContext: ErrorLoggingContext): Future[T]

    If the future fails, log the associated error and re-throw.

    If the future fails, log the associated error and re-throw. The returned future completes after logging.

  15. def logOnFailureUS[T](future: FutureUnlessShutdown[T], failureMessage: => String, onFailure: (Throwable) => Unit = _ => (), level: => Level = Level.ERROR, closeContext: Option[CloseContext] = None, ignorePassiveInstance: Boolean = false)(implicit loggingContext: ErrorLoggingContext): FutureUnlessShutdown[T]
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def unwrapCompletionException[A](f: Future[A])(implicit ec: ExecutionContext): Future[A]

    Java libraries often wrap exceptions in a future inside a java.util.concurrent.CompletionException when they convert a Java-style future into a Scala-style future.

    Java libraries often wrap exceptions in a future inside a java.util.concurrent.CompletionException when they convert a Java-style future into a Scala-style future. When our code then tries to catch our own exceptions, the logic fails because we do not look inside the java.util.concurrent.CompletionException. We therefore want to unwrap such exceptions

  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped