UNPKG

completable-promise

Version:

CompletablePromise library allows to create a Promise instance that does not start its resolution upon its declaration.

22 lines 628 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.State = void 0; /** * Represents the states of a promise. */ var State; (function (State) { /** * Promise initial state. */ State["Pending"] = "pending"; /** * Promise state after the method {@link CompletablePromise.resolve} has been called. */ State["Fulfilled"] = "fulfilled"; /** * Promise state after the method {@link CompletablePromise.reject} has been called. */ State["Rejected"] = "rejected"; })(State = exports.State || (exports.State = {})); //# sourceMappingURL=state.js.map