trait Effect extends AnyRef
- Alphabetic
- By Inheritance
- Effect
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def +(that: Effect): EffectSet
Combines two effects so that will be run in parallel.
- abstract def <<(that: Effect): EffectSeq
Combines another effect with this one, to be run before this effect.
- abstract def >>(that: Effect): EffectSeq
Combines another effect with this one, to be run after this effect.
- abstract def after(delay: FiniteDuration)(implicit runner: RunAfter): Effect
Delays the execution of this effect by duration
delay
- abstract def ec: ExecutionContext
- abstract def flatMap[B](g: (Any) => Future[B])(implicit arg0: ActionType[B]): Effect
Creates a new effect by applying a function to the successful result of this effect, and returns the result of the function as the new future.
Creates a new effect by applying a function to the successful result of this effect, and returns the result of the function as the new future. If this effect is completed with an exception then the new effect will also contain this exception.
- abstract def map[B](g: (Any) => B)(implicit arg0: ActionType[B]): Effect
Creates a new effect by applying a function to the successful result of this effect.
Creates a new effect by applying a function to the successful result of this effect. If this effect is completed with an exception then the new effect will also contain this exception.
- abstract def run(dispatch: (Any) => Unit): Future[Unit]
Runs the effect and dispatches the result of the effect.
Runs the effect and dispatches the result of the effect.
- dispatch
Function to dispatch the effect result with.
- returns
A future that completes when the effect completes.
- abstract def size: Int
Returns the number of effects
- abstract def toFuture: Future[Any]
Runs the effect function and returns its value (a Future[Any])
Concrete 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()