Core · interface

SaveTimer

The delay, taken as a capability rather than reached for.

Explained in The loop.

interface SaveTimer
import type { SaveTimer } from '@driftengine/core';

In depth

The same rule KeyValueStore itself follows: nothing here may assume a browser origin, and a native shell or a test supplies its own. A platform with no timer at all still works — nothing is ever armed, and the consumer drives flush().

Methods

schedule

schedule(callback: () => void, delayMs: number): number
ParameterTypeDescription
callback() => void
delayMsnumber

cancel

cancel(handle: number): void
ParameterTypeDescription
handlenumber