@groovy.transform.AutoFinal @groovy.transform.CompileStatic class Promises extends java.lang.Object
Factory class for working with Promise instances
Type | Name and description |
---|---|
static PromiseFactory |
promiseFactory |
PromiseFactory |
promiseFactory |
Type Params | Return Type | Name and description |
---|---|---|
<T> |
static Promise<T> |
createBoundPromise(T value)
|
<K, V> |
static Promise<java.util.Map<K, V>> |
createPromise(java.util.Map<K, V> map)
|
<K, V> |
static Promise<java.util.Map<K, V>> |
createPromise(java.util.Map<K, V> map, java.util.List<PromiseDecorator> decorators)
|
<T> |
static Promise<T> |
createPromise(groovy.lang.Closure<T>[] closures)
|
|
static Promise<java.lang.Void> |
createPromise()
|
<T> |
static Promise<T> |
createPromise(java.lang.Class<T> returnType)
|
<T> |
static Promise<T> |
createPromise(groovy.lang.Closure<T> closure, java.util.List<PromiseDecorator> decorators)
|
<T> |
static Promise<java.util.List<T>> |
createPromise(java.util.List<groovy.lang.Closure<T>> closures, java.util.List<PromiseDecorator> decorators)
|
<T> |
static Promise<java.util.List<T>> |
createPromise(Promise<T>[] promises)
|
|
static PromiseFactory |
getPromiseFactory() |
<T> |
static Promise<java.util.List<T>> |
onComplete(java.util.List<Promise<T>> promises, groovy.lang.Closure<T> callable)
|
<T> |
static Promise<java.util.List<T>> |
onError(java.util.List<Promise<T>> promises, groovy.lang.Closure<?> callable)
|
|
static void |
setPromiseFactory(PromiseFactory promiseFactory) |
<T> |
static Promise<T> |
task(groovy.lang.Closure<T> closure)
|
<K, V> |
static Promise<java.util.Map<K, V>> |
tasks(java.util.Map<K, V> map)
|
<T> |
static Promise<T> |
tasks(groovy.lang.Closure<T>[] closures)
|
<T> |
static Promise<java.util.List<T>> |
tasks(java.util.List<groovy.lang.Closure<T>> closures)
|
<T> |
static java.util.List<T> |
waitAll(Promise<T>[] promises)
|
<T> |
static java.util.List<T> |
waitAll(java.util.List<Promise<T>> promises)
|
<T> |
static java.util.List<T> |
waitAll(java.util.List<Promise<T>> promises, long timeout, java.util.concurrent.TimeUnit units)
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |