MCPcopy Create free account
hub / github.com/tinyplex/tinybase / startAutoPersisting

Function startAutoPersisting

src/persisters/common/create.ts:318–328  ·  view source on GitHub ↗
(
    initialContent?: Content | (() => Content),
    startSaveFirst = false,
  )

Source from the content-addressed store, hash-verified

316 const isAutoSaving = () => !isUndefined(autoSaveListenerId);
317
318 const startAutoPersisting = async (
319 initialContent?: Content | (() => Content),
320 startSaveFirst = false,
321 ): Promise<Persister<Persist>> => {
322 const [call1, call2] = startSaveFirst
323 ? [startAutoSave, startAutoLoad]
324 : [startAutoLoad, startAutoSave];
325 await call1(initialContent);
326 await call2(initialContent);
327 return persister;
328 };
329
330 const stopAutoPersisting = async (
331 stopSaveFirst = false,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…