MCPcopy
hub / github.com/webpack/webpack / scheduleUpdateHistory

Function scheduleUpdateHistory

examples/module-worker/example.js:34–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33let historyTimeout;
34const scheduleUpdateHistory = () => {
35 clearTimeout(historyTimeout);
36 historyTimeout = setTimeout(() => {
37 chatWorker.port.postMessage({ type: "history" });
38 }, 1000);
39};
40scheduleUpdateHistory();
41
42const from = `User ${Math.floor(Math.random() * 10000)}`;

Callers 1

example.jsFile · 0.70

Calls 1

postMessageMethod · 0.80

Tested by

no test coverage detected