Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/core / / CheckpointPutOptions
Interface: CheckpointPutOptions
Defined in: packages/core/src/contracts/checkpoint-store.ts:118
Stable
Optional atomicity contract for CheckpointStore.put. When expectedLatestId is supplied, the store MUST perform the latest-checkpoint comparison and the insert atomically (single transaction / synchronous critical section) and throw CheckpointConflictError on mismatch - closing the TOCTOU window an engine-level read-then-write cannot. null means "expect no checkpoint for this thread yet"; undefined (or a store that ignores the argument) preserves the unguarded legacy behaviour, which the engine backstops with its own pre-check.
Properties
| Property | Modifier | Type | Defined in |
|---|---|---|---|
expectedLatestId? | readonly | string | null | packages/core/src/contracts/checkpoint-store.ts:119 |