Starts a throttled checkpoint writer for index mutations: a write at
least delayMs after the first pending mutation, and no more often than
once per floorMs, the last change never dropped.
Parameters
identity: string
Canonical ChRIS identity string.
root: string = ...
Checkpoint directory override.
delayMs: number = 2000
Debounce interval in milliseconds.
floorMs: number = QUERY_INDEX_CHECKPOINT_FLOOR_MS
Minimum spacing between two writes.
Returns ()=>void
Function that stops watching and cancels a pending save.
Starts a throttled checkpoint writer for index mutations: a write at least
delayMsafter the first pending mutation, and no more often than once perfloorMs, the last change never dropped.