public enum Promise.State

  1. Object
  2. Enum<Promise.State>
  3. Promise.State

ImplementsComparable<Promise.State>

Encapsulates the state of a Promise.

Enum constants

Pendinginitial state, neither fulfilled nor rejected.
Fulfilledthe operation completed successfully.
Rejectedthe operation failed.

Methods

public static Promise.State[] values()
public static Promise.State valueOf(String name)

Inherited methods

Enum constant details

Pending

Pending
initial state, neither fulfilled nor rejected.

Fulfilled

Fulfilled
the operation completed successfully.

Rejected

Rejected
the operation failed.

Method details

values

public static Promise.State[] values()

valueOf

public static Promise.State valueOf(String name)