MCPcopy
hub / github.com/webpack/tapable / runForLoop

Method runForLoop

test/HookTester.test.js:43–60  ·  view source on GitHub ↗
(syncOnly)

Source from the content-addressed store, hash-verified

41 }
42
43 async runForLoop(syncOnly) {
44 const result = {
45 sync: {},
46 async: {}
47 };
48
49 if (syncOnly) {
50 await this.runForLoopSync(result.sync, "call");
51 } else {
52 await this.runForLoopAsync(result.async, "callAsync");
53 await this.runForLoopAsync(result.async, "promise");
54 }
55
56 await this.runForLoopSync(result.sync, "callAsync");
57 await this.runForLoopSync(result.sync, "promise");
58
59 return result;
60 }
61
62 async runForLoopAsync(result, method) {
63 {

Callers 2

SyncHooks.test.jsFile · 0.80

Calls 2

runForLoopSyncMethod · 0.95
runForLoopAsyncMethod · 0.95

Tested by

no test coverage detected