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

Function promiseFn

test/parallel/test-util-callbackify.js:40–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38
39 // Test Promise factory
40 function promiseFn() {
41 return Promise.resolve(value);
42 }
43
44 const cbPromiseFn = callbackify(promiseFn);
45 cbPromiseFn(common.mustSucceed((ret) => {

Callers 1

waitForActualFunction · 0.85

Calls 2

rejectMethod · 0.80
resolveMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…