public interface OnComplete
Listener for a Promise entering a state where Promise.isDone()
returns true.
Promise| Modifier and Type | Method and Description |
|---|---|
void |
complete(int state) |
void complete(int state)
state - The final state of the Promise. It is not guaranteed that this parameter will be
one of the constants defined in Promise , inheritors MAY provide alternate
terminal states.Promise.RESOLVED,
Promise.REJECTED,
Promise.PENDINGCopyright © 2014 MachineCode. All rights reserved.