MCPcopy Create free account
hub / github.com/CapSoftware/Cap / initWorker

Function initWorker

apps/desktop/src/utils/frame-worker.ts:869–881  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

867}
868
869function initWorker() {
870 workerReady = true;
871 self.postMessage({ type: "ready" } satisfies ReadyMessage);
872
873 if (pendingCanvasInit) {
874 initCanvas(pendingCanvasInit);
875 pendingCanvasInit = null;
876 }
877
878 if (useSharedBuffer && consumer) {
879 startRenderLoop();
880 }
881}
882
883initWorker();
884

Callers 1

frame-worker.tsFile · 0.85

Calls 2

initCanvasFunction · 0.85
startRenderLoopFunction · 0.85

Tested by

no test coverage detected