Promise

de.rmgk.delay$.Promise
class Promise[T] extends Callback[T]

Simple promise implementation synchronizing on the object monitor.

Attributes

Graph
Supertypes
trait Callback[T]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def complete(res: Either[Throwable, T]): Unit

Attributes

Definition Classes

Inherited methods

inline def complete(tr: Try[T]): Unit

Attributes

Inherited from:
Callback
def fail(ex: Throwable): Unit

Attributes

Inherited from:
Callback
def succeed(value: T): Unit

Attributes

Inherited from:
Callback

Concrete fields

val async: Async[Any, T]