MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / newPromise

Function newPromise

out/cli.cjs:10483–10485  ·  view source on GitHub ↗
(executor)

Source from the content-addressed store, hash-verified

10481 const originalPromiseThen = Promise.prototype.then;
10482 const originalPromiseReject = Promise.reject.bind(originalPromise);
10483 function newPromise(executor) {
10484 return new originalPromise(executor);
10485 }
10486 function promiseResolvedWith(value) {
10487 return newPromise((resolve) => resolve(value));
10488 }

Callers 15

promiseResolvedWithFunction · 0.85
readMethod · 0.85
_nextStepsMethod · 0.85
readMethod · 0.85
WritableStreamAbortFunction · 0.85
WritableStreamCloseFunction · 0.85
ReadableStreamPipeToFunction · 0.85
pipeLoopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…