MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / stopCoreCacheSync

Function stopCoreCacheSync

src/Data/CoreCacheSync.js:152–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

150}
151
152export function stopCoreCacheSync() {
153 active = false;
154 if (idleHandle !== null) {
155 if ("cancelIdleCallback" in window) {
156 window.cancelIdleCallback(idleHandle);
157 } else {
158 window.clearTimeout(idleHandle);
159 }
160 idleHandle = null;
161 }
162 if (syncTimer !== null) {
163 window.clearInterval(syncTimer);
164 syncTimer = null;
165 }
166 window.removeEventListener("online", scheduleSync);
167 window.removeEventListener(CACHE_CLEARED_EVENT, stopCoreCacheSync);
168}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected