Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
waitForActual
Function · 0.85
Calls
2
reject
Method · 0.80
resolve
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…