public enum Promise.State
- Object
- Enum<Promise.State>
- Promise.State
ImplementsComparable<Promise.State>
Encapsulates the state of a Promise.
Enum constants
Pending | initial state, neither fulfilled nor rejected. |
Fulfilled | the operation completed successfully. |
Rejected | the operation failed. |
Methods
public static Promise.State[] values() | |
public static Promise.State valueOf(String name) |
Inherited methods
Enum constant details
Pending
Pendinginitial state, neither fulfilled nor rejected.
Fulfilled
Fulfilledthe operation completed successfully.
Rejected
Rejectedthe operation failed.
Method details
values
public static Promise.State[] values()valueOf
public static Promise.State valueOf(String name)