MCPcopy
hub / github.com/webpack/webpack / callback

Function callback

test/MultiItemCache.unittest.js:29–35  ·  view source on GitHub ↗
(
			/** @type {Error | null | undefined} */ err,
			/** @type {unknown} */ res
		)

Source from the content-addressed store, hash-verified

27 const itemCaches = generateItemCaches(10);
28 const multiItemCache = new MultiItemCache(itemCaches);
29 const callback = (
30 /** @type {Error | null | undefined} */ err,
31 /** @type {unknown} */ res
32 ) => {
33 expect(err).toBeNull();
34 expect(res).toBeInstanceOf(Object);
35 };
36 for (let i = 0; i < 10; ++i) {
37 multiItemCache.get(callback);
38 }

Callers 15

onCloseFunction · 0.70
createSnapshotFunction · 0.70
expectSnapshotsStateFunction · 0.70
expectSnapshotStateFunction · 0.70
buildFsInfoWithSnapshotFunction · 0.70
buildWithStatsFunction · 0.70
runCompilerFunction · 0.70
mkdirFunction · 0.70
writeFileFunction · 0.70

Calls

no outgoing calls

Tested by 9

onCloseFunction · 0.56
mkdirFunction · 0.56
writeFileFunction · 0.56
statFunction · 0.56
compileFunction · 0.56
mkdirFunction · 0.56
writeFileFunction · 0.56
statFunction · 0.56
watchFunction · 0.56