MCPcopy
hub / github.com/webpack/webpack / primeTaskAsync

Function primeTaskAsync

test/BenchmarkTestCases.benchmark.mjs:837–846  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

835 * @returns {Promise<void>}
836 */
837 const primeTaskAsync = async (task) => {
838 const meta = uriMap.get(task.name);
839 if (!meta) return;
840 await meta.options?.beforeAll?.call(task, "warmup");
841 try {
842 await iterationAsync(task, task.name);
843 } finally {
844 await meta.options?.afterAll?.call(task, "warmup");
845 }
846 };
847
848 /**
849 * Sync version of primeTaskAsync — see that docstring for what is and

Callers 1

withCodSpeedFunction · 0.85

Calls 3

iterationAsyncFunction · 0.85
getMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected