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

Method run

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

Source from the content-addressed store, hash-verified

18 }
19
20 async run(syncOnly) {
21 const result = {
22 sync: {},
23 async: {},
24 intercept: {}
25 };
26
27 if (syncOnly) {
28 await this.runSync(result.sync, "call");
29 } else {
30 await this.runAsync(result.async, "callAsync");
31 await this.runAsync(result.async, "promise");
32
33 await this.runIntercept(result.intercept, "callAsync");
34 await this.runIntercept(result.intercept, "promise");
35 }
36
37 await this.runSync(result.sync, "callAsync");
38 await this.runSync(result.sync, "promise");
39
40 return result;
41 }
42
43 async runForLoop(syncOnly) {
44 const result = {

Callers 5

run.mjsFile · 0.80
SyncHooks.test.jsFile · 0.80

Calls 3

runSyncMethod · 0.95
runAsyncMethod · 0.95
runInterceptMethod · 0.95

Tested by

no test coverage detected