MCPcopy Index your code
hub / github.com/nodejs/node / onResolvedOrRejected

Function onResolvedOrRejected

test/common/inspector-helper.js:510–518  ·  view source on GitHub ↗
(promise, callback)

Source from the content-addressed store, hash-verified

508}
509
510function onResolvedOrRejected(promise, callback) {
511 return promise.then((result) => {
512 callback();
513 return result;
514 }, (error) => {
515 callback();
516 throw error;
517 });
518}
519
520function timeoutPromise(error, timeoutMs) {
521 let clearCallback = null;

Callers 2

timeoutPromiseFunction · 0.85
firesFunction · 0.85

Calls 2

callbackFunction · 0.50
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…