| Constructor and Description |
|---|
AndPromise(Collection<Promise> collection) |
AndPromise(Promise<?>... values) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCallback(Runnable callback)
Compliant implementation should notify callbacks after promise is set to
ready state.
|
Void |
get() |
Promise[] |
getValues() |
boolean |
isReady() |
protected void |
removeCallback(Runnable callback) |
asPromise, getDescription, Voidpublic AndPromise(Promise<?>... values)
public AndPromise(Collection<Promise> collection)
public Promise[] getValues()
protected void addCallback(Runnable callback)
PromiseaddCallback in class Promise<Void>callback - callback to notifypublic Void get()
public boolean isReady()
protected void removeCallback(Runnable callback)
removeCallback in class Promise<Void>Copyright © 2015. All rights reserved.