MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / messageResender

Function messageResender

src/build_as_worker.js:16–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 function messageResender() {
17 flushMessages();
18 if (messageBuffer) {
19 setTimeout(messageResender, 100); // still more to do
20 }
21 }
22
23 onmessage = (msg) => {
24 // if main has not yet been called (mem init file, other async things), buffer messages

Callers

nothing calls this directly

Calls 1

flushMessagesFunction · 0.85

Tested by

no test coverage detected