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

Function callback

benchmark/fs/bench-glob.js:28–36  ·  view source on GitHub ↗
(resolve, reject)

Source from the content-addressed store, hash-verified

26 const { pattern, recursive, mode } = config;
27 const options = { cwd: fullPath, recursive };
28 const callback = (resolve, reject) => {
29 glob(pattern, options, (err, matches) => {
30 if (err) {
31 reject(err);
32 } else {
33 resolve(matches);
34 }
35 });
36 };
37
38 let noDead;
39 bench.start();

Callers 15

transformFunction · 0.70
writeFunction · 0.70
_http_outgoing.jsFile · 0.50
emitErrorNtFunction · 0.50
mapFunction · 0.50
doConnectFunction · 0.50
#onMessageMethod · 0.50
zlib.jsFile · 0.50
paramsAfterFlushCallbackFunction · 0.50
completeOnEditorModeMethod · 0.50
exithandlerFunction · 0.50
vfsResultFunction · 0.50

Calls 3

globFunction · 0.50
rejectFunction · 0.50
resolveFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…