Skip to content

SaveJob

A save in progress, stepped by the caller with a budget of work units (ADR 0028 §3).

cancel(): void

Stops the job: its next step fails with cancelled.

void


free(): void

Frees the job’s memory now (otherwise when it is garbage-collected).

void


step(budget): any

Runs at most budget work units.

number

any

{ state: "progress", … }, or { state: "done", bytes, report } at the end.

LaminaError cancelled, document-changed, job-finished, or the save’s errors.