Core · interface
SaveTimer
The delay, taken as a capability rather than reached for.
Explained in The loop.
interface SaveTimerimport 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| Parameter | Type | Description |
|---|---|---|
callback | () => void | |
delayMs | number |
cancel
cancel(handle: number): void| Parameter | Type | Description |
|---|---|---|
handle | number |