| Modifiers | Name | Description |
|---|---|---|
protected List<T> |
initialized |
|
protected List<Promise> |
promises |
| Constructor and description |
|---|
PromiseList() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
Promise<List<T>> |
accept(List<T> value) |
|
boolean |
add(Object value)Implementation of add that adds any value as a bound promise |
|
boolean |
add(Closure callable)Implementation of add that takes a closure and creates a promise, adding it to the list |
|
boolean |
add(Promise<T> p)Implementation of add that takes a promise, adding it to the list |
|
boolean |
cancel(boolean mayInterruptIfRunning)Synchronously obtains all the values from all the promises |
|
List |
get() |
|
List |
get(long timeout, TimeUnit units) |
|
boolean |
isCancelled() |
|
boolean |
isDone() |
|
PromiseList |
leftShift(Closure callable)Add a promise to the promise list |
|
PromiseList |
leftShift(Object value)Add a value as a bound promise to the list of values |
|
PromiseList |
leftShift(Promise p)Add a promise to the promise list |
|
Promise |
onComplete(Closure callable)Execute the given closure when all promises are complete |
|
Promise |
onError(Closure callable) |
|
Promise |
then(Closure callable) |
Implementation of add that adds any value as a bound promise
callable - The callableImplementation of add that takes a closure and creates a promise, adding it to the list
callable - The callableImplementation of add that takes a promise, adding it to the list
callable - The callableSynchronously obtains all the values from all the promises
Add a promise to the promise list
callable - The callableAdd a value as a bound promise to the list of values
callable - The callableAdd a promise to the promise list
callable - The callableExecute the given closure when all promises are complete
callable - The callable