public class BlockingPromise<T>
extends java.lang.Object
Promise
created using PromiseFactory
, so that we can resolve a promise after the fact.
This class is tested as part of PromiseFactory
, in the abstract PromiseFactoryTest class.
Constructor and Description |
---|
BlockingPromise(PromiseFactory factory) |
Modifier and Type | Method and Description |
---|---|
Promise<T> |
fulfill(T value) |
Promise<T> |
getPromise() |
Promise<T> |
reject(java.lang.Throwable value) |