@CompileStatic class SynchronousPromiseFactory extends AbstractPromiseFactory
A PromiseFactory implementation that constructors promises that execute synchronously. Useful for testing environments.
| Fields inherited from class | Fields |
|---|---|
class AbstractPromiseFactory |
lookupStrategies |
| Constructor and description |
|---|
SynchronousPromiseFactory() |
| Type Params | Return Type | Name and description |
|---|---|---|
<T> |
Promise<T> |
createPromise(Class<T> returnType) |
|
Promise<Object> |
createPromise() |
<T> |
Promise<T> |
createPromise(Closure<T>[] closures) |
<T> |
Promise<List<T>> |
onComplete(List<Promise<T>> promises, Closure<?> callable) |
<T> |
Promise<List<T>> |
onError(List<Promise<T>> promises, Closure<?> callable) |
<T> |
List<T> |
waitAll(List<Promise<T>> promises) |
<T> |
List<T> |
waitAll(List<Promise<T>> promises, long timeout, TimeUnit units) |
| Methods inherited from class | Name |
|---|---|
class AbstractPromiseFactory |
addPromiseDecoratorLookupStrategy, applyDecorators, createBoundPromise, createPromise, createPromise, createPromise, createPromise, createPromise, createPromise, createPromiseInternal, waitAll |