MCPcopy
hub / github.com/louischatriot/nedb / reject

Function reject

browser-version/out/nedb.js:5727–5733  ·  view source on GitHub ↗
(promise, reason)

Source from the content-addressed store, hash-verified

5725 }
5726
5727 function reject(promise, reason) {
5728 if (promise._state !== PENDING) { return; }
5729 promise._state = SEALED;
5730 promise._detail = reason;
5731
5732 config.async(publishRejection, promise);
5733 }
5734
5735 function publishFulfillment(promise) {
5736 publish(promise, promise._state = FULFILLED);

Callers 15

rejectPromiseFunction · 0.70
invokeCallbackFunction · 0.70
handleThenableFunction · 0.70
nedb.jsFile · 0.70
_blobAjaxFunction · 0.70
_getConnectionFunction · 0.70
getItemFunction · 0.70
iterateFunction · 0.70
setItemFunction · 0.70
removeItemFunction · 0.70
clearFunction · 0.70
lengthFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…