FutureWrapper

class FutureWrapper[A](name: String, val peerFuture: Future[A])(exec: ExecutionContext) extends Processor[A] with ModelImpl[Update[A, Processor[A]]] with FutureProxy[A]
trait FutureProxy[A]
trait ModelImpl[Update[A, Processor[A]]]
trait Processor[A]
trait Model[Update[A, Processor[A]]]
trait Future[A]
trait Awaitable[A]
class Object
trait Matchable
class Any

Value members

Concrete methods

def abort(): Unit
def progress: Double

Queries the correct progress which is value between 0.0 and 1.0

Queries the correct progress which is value between 0.0 and 1.0

override def toString: String
Definition Classes
Any

Inherited methods

def addListener(pf: Listener[Update[A, Processor[A]]]): pf
Inherited from
ModelImpl
def andThen[U](pf: PartialFunction[Try[A], U])(executor: ExecutionContext): Future[A]
Inherited from
Future
def collect[S](pf: PartialFunction[A, S])(executor: ExecutionContext): Future[S]
Inherited from
Future
final protected def dispatch(update: Update[A, Processor[A]]): Unit

Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.

Synchronously dispatches an update to all currently registered listeners. Non fatal exceptions are caught on a per-listener basis without stopping the dispatch.

Inherited from
ModelImpl
def failed: Future[Throwable]
Inherited from
Future
def fallbackTo[U >: A](that: Future[U]): Future[U]
Inherited from
Future
def filter(p: A => Boolean)(executor: ExecutionContext): Future[A]
Inherited from
Future
def flatMap[S](f: A => Future[S])(executor: ExecutionContext): Future[S]
Inherited from
Future
def flatten[S](ev: A <:< Future[S]): Future[S]
Inherited from
Future
def foreach[U](f: A => U)(executor: ExecutionContext): Unit
Inherited from
Future
def isCompleted: Boolean
Inherited from
FutureProxy
def map[S](f: A => S)(executor: ExecutionContext): Future[S]
Inherited from
Future
def mapTo[S](tag: ClassTag[S]): Future[S]
Inherited from
Future
def onComplete[U](func: Try[A] => U)(executor: ExecutionContext): Unit
Inherited from
FutureProxy
def ready(atMost: Duration)(permit: CanAwait): FutureWrapper[A]
Inherited from
FutureProxy
def recover[U >: A](pf: PartialFunction[Throwable, U])(executor: ExecutionContext): Future[U]
Inherited from
Future
def recoverWith[U >: A](pf: PartialFunction[Throwable, Future[U]])(executor: ExecutionContext): Future[U]
Inherited from
Future
protected def releaseListeners(): Unit

Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.

Removes all listeners. This is useful when disposing the model, to remove any unnecessary references.

Inherited from
ModelImpl
def removeListener(pf: Listener[Update[A, Processor[A]]]): Unit
Inherited from
ModelImpl
def result(atMost: Duration)(permit: CanAwait): A
Inherited from
FutureProxy
protected def startListening(): Unit

Subclasses can override this to issue particular actions when the first listener has been registered

Subclasses can override this to issue particular actions when the first listener has been registered

Inherited from
ModelImpl
protected def stopListening(): Unit

Subclasses can override this to issue particular actions when the last listener has been unregistered

Subclasses can override this to issue particular actions when the last listener has been unregistered

Inherited from
ModelImpl
def transform[B](f: Try[A] => Try[B])(executor: ExecutionContext): Future[B]
Inherited from
FutureProxy
def transform[S](s: A => S, f: Throwable => Throwable)(executor: ExecutionContext): Future[S]
Inherited from
Future
def transformWith[B](f: Try[A] => Future[B])(executor: ExecutionContext): Future[B]
Inherited from
FutureProxy
def value: Option[Try[A]]
Inherited from
FutureProxy
final def withFilter(p: A => Boolean)(executor: ExecutionContext): Future[A]
Inherited from
Future
def zip[U](that: Future[U]): Future[(A, U)]
Inherited from
Future
def zipWith[U, R](that: Future[U])(f: (A, U) => R)(executor: ExecutionContext): Future[R]
Inherited from
Future