play.api.libs

concurrent

package concurrent

Utility classes commonly useful in concurrent programming, such as Promise and Akka helpers. For example:

  val promise1 = akka.dispatch.Future{"hello"}.asPromise
  val promise2 = Promise.pure(mylongRunningJob)
Visibility
  1. Public
  2. All

Type Members

  1. class AkkaFuture [A] extends AnyRef

    Wrapper used to transform an Akka Future to Play Promise

  2. class AkkaPlugin extends Plugin

    Plugin managing the application Akka Actor System.

  3. class AkkaPromise [A] extends Promise[A]

    A promise implemantation based on Akka's Future

  4. trait NotWaiting [+A] extends PromiseValue[A]

  5. trait Promise [+A] extends AnyRef

  6. trait PromiseValue [+A] extends AnyRef

    Attributes
    sealed
  7. trait Redeemable [-A] extends AnyRef

  8. type RedeemablePromise [A] = Promise[A] with Redeemable[A]

    Definition Classes
    package
  9. case class Redeemed [+A] (a: A) extends NotWaiting[A] with Product with Serializable

  10. class STMPromise [A] extends Promise[A] with Redeemable[A]

  11. case class Thrown (e: Throwable) extends NotWaiting[Nothing] with Product with Serializable

Value Members

  1. object Akka extends AnyRef

    Helper to access the application defined Akka Actor system.

  2. object Promise extends AnyRef

  3. object PurePromise extends AnyRef

  4. object STMPromise extends AnyRef

  5. object Waiting extends PromiseValue[Nothing] with Product with Serializable

  6. implicit def akkaToPlay [A] (future: Future[A]): AkkaFuture[A]

    Implicit conversion of Future to AkkaFuture, supporting the asPromise operation.

    Implicit conversion of Future to AkkaFuture, supporting the asPromise operation.

    Attributes
    implicit
    Definition Classes
    package