MCPcopy
hub / github.com/webpack/webpack-dev-server / ready

Function ready

test/helpers/test-server.js:58–70  ·  view source on GitHub ↗
(error)

Source from the content-addressed store, hash-verified

56 let readyCount = 0;
57
58 const ready = (error) => {
59 if (error && done) {
60 done(error);
61
62 return;
63 }
64
65 readyCount += 1;
66
67 if (readyCount === 2) {
68 done();
69 }
70 };
71
72 const result = startFullSetup(config, devServerConfig, ready);
73

Callers 1

startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…