object FutureHelper
- Alphabetic
- By Inheritance
- FutureHelper
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- 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.
- def afterEachOtherStateful[T, S](in: Iterable[T], s0: S)(f: (S, T) => Future[S])(implicit ec: ExecutionContext): Future[S]
Runs a function
fon a given list, each after each other.Runs a function
fon 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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asyncWait(duration: FiniteDuration)(implicit akkaRuntime: AkkaRuntime): Future[Unit]
Returns a future which fires after given duration
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def time[T](logger: Logger, name: String)(f: => Future[T])(implicit ec: ExecutionContext): Future[T]
Times a future returning function and writes to log.
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tryMultipleTimes[T](timeout: FiniteDuration, tryAgainWaitDuration: FiniteDuration)(f: => Future[Option[T]])(implicit actorSystem: ActorSystem, ec: ExecutionContext): Future[T]
Try
fmultiple times within a given timeout. - final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])