public class Promise<T extends AbstractDeferred> extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFulfilled() |
boolean |
isRejected() |
boolean |
isSettled() |
void |
then(PromiseListener listener)
Adds a listener that is called once the promise is settled.
|
public Promise(T deferred)
public void then(PromiseListener listener)
listener - the listener that will be called once the promise is settledpublic boolean isFulfilled()
public boolean isRejected()
public boolean isSettled()
Copyright © 2021. All rights reserved.