object FutureHelper

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FutureHelper
  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. def addTimeout[T](future: Future[T], operationName: String = "Future", timeout: FiniteDuration)(implicit akkaRuntime: AkkaRuntime): Future[T]

    Let a future with scala.concurrent.TimeoutException if it takes too long.

    Let a future with scala.concurrent.TimeoutException if it takes too long. Note: the inner code of the future will still run, as they are not cancellable.

    operationName

    an operation name, which will be displayed in the exception.

    returns

    the future which will fail with timeout.

  5. def afterEachOther[T, X](in: Iterable[T])(f: (T) => Future[X])(implicit ec: ExecutionContext): Future[Vector[X]]

    Runs f after each other, eventually leading to a map operation.

  6. def afterEachOtherStateful[T, S](in: Iterable[T], s0: S)(f: (S, T) => Future[S])(implicit ec: ExecutionContext): Future[S]

    Runs a function f on a given list, each after each other.

    Runs a function f on a given list, each after each other. Each method receives the state returned by the function before.

    in

    input data for the function

    s0

    initial state

    f

    method consuming the current state and current element of in and returning a future to the next state.

  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def asyncWait(duration: FiniteDuration)(implicit akkaRuntime: AkkaRuntime): Future[Unit]

    Returns a future which fires after given duration

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def time[T](logger: Logger, name: String)(f: => Future[T])(implicit ec: ExecutionContext): Future[T]

    Times a future returning function and writes to log.

  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. def tryMultipleTimes[T](timeout: FiniteDuration, tryAgainWaitDuration: FiniteDuration)(f: => Future[Option[T]])(implicit actorSystem: ActorSystem, ec: ExecutionContext): Future[T]

    Try f multiple times within a given timeout.

  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

Inherited from AnyRef

Inherited from Any

Ungrouped