MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / flushLater

Function flushLater

src/background/utils/storage-cache.js:204–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204function flushLater() {
205 if (!flushTimer && !isEmpty(valuesToFlush)) {
206 flushTimer = setTimeout(flush,
207 Math.min(FLUSH_MAX_DELAY, FLUSH_DELAY * Math.max(1, deepSize(valuesToFlush) / FLUSH_SIZE_STEP)));
208 }
209}
210
211function notifyWatchers(toFlush, toRemove) {
212 const byFn = new Map();

Callers 2

setFunction · 0.85
removeFunction · 0.85

Calls 2

isEmptyFunction · 0.90
deepSizeFunction · 0.90

Tested by

no test coverage detected