Interface PromiseRef<T>


public interface PromiseRef<T>
A combination of a Promise and an ActorRef associated with it, which points to an actor performing a task which will eventually resolve the Promise.
  • Method Summary

    Modifier and Type
    Method
    Description
    scala.concurrent.Future<T>
    Future containing the value of the Promise associated with this PromiseRef.
    scala.concurrent.Promise<T>
    Promise associated with this PromiseRef.
    ref()
    ActorRef associated with this PromiseRef.
    Converts this PromiseRef to FutureRef, effectively narrowing it's API.
  • Method Details

    • ref

      ActorRef ref()
      ActorRef associated with this PromiseRef.
    • promise

      scala.concurrent.Promise<T> promise()
      Promise associated with this PromiseRef.
    • future

      scala.concurrent.Future<T> future()
      Future containing the value of the Promise associated with this PromiseRef.
    • toFutureRef

      FutureRef<T> toFutureRef()
      Converts this PromiseRef to FutureRef, effectively narrowing it's API.