Lines Matching defs:promise
27 * State of the promise. Each value corresponds to one of the possible values
35 * Create a new resolver, along with an associated promise in pending state.
41 * Extract the associated promise.
46 * Resolve/reject the associated promise with a given value.
47 * Ignored if the promise is no longer pending.
68 * Register a resolution/rejection handler with a promise.
70 * an argument. If the promise is already resolved/rejected, the handler is
84 * Returns true if the promise has at least one derived promise, and
101 * Marks this promise as handled to avoid reporting unhandled rejections.
106 * Marks this promise as silent to prevent pausing the debugger when the
107 * promise is rejected.
126 * PromiseHook with type kInit is called when a new promise is
127 * created. When a new promise is created as part of the chain in the
129 * Promise.{race, all}/AsyncFunctionAwait, we pass the parent promise
143 using PromiseHook = void (*)(PromiseHookType type, Local<Promise> promise,
156 PromiseRejectMessage(Local<Promise> promise, PromiseRejectEvent event,
158 : promise_(promise), event_(event), value_(value) {}