BrowserStorageExportCheckpointStore
此内容尚不支持你的语言。
Defined in: checkpoint.ts:48
Durable browser checkpoint store. A new instance with the same namespace resumes committed units after a page reload; callers may inject sessionStorage or a test double instead of localStorage.
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new BrowserStorageExportCheckpointStore(
options):BrowserStorageExportCheckpointStore
Defined in: checkpoint.ts:52
Parameters
Section titled “Parameters”options
Section titled “options”namespace?
Section titled “namespace?”string
storage?
Section titled “storage?”Storage
Returns
Section titled “Returns”BrowserStorageExportCheckpointStore
Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
key,signal?):Promise<void>
Defined in: checkpoint.ts:87
Parameters
Section titled “Parameters”string
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”load()
Section titled “load()”load(
key,signal?):Promise<ExportCheckpoint|undefined>
Defined in: checkpoint.ts:58
Parameters
Section titled “Parameters”string
signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<ExportCheckpoint | undefined>
Implementation of
Section titled “Implementation of”save()
Section titled “save()”save(
key,checkpoint,signal?):Promise<void>
Defined in: checkpoint.ts:81
Parameters
Section titled “Parameters”string
checkpoint
Section titled “checkpoint”signal?
Section titled “signal?”AbortSignal
Returns
Section titled “Returns”Promise<void>