Skip to content

CompactionJob

A background compaction started by WarmMemorySystem.startCompaction. Collecting it cancels the job; the worker is joined off the JavaScript thread.

Constructors

Constructor

new CompactionJob(): CompactionJob;

Returns

CompactionJob

Accessors

finished

Get Signature

get finished(): boolean;
Returns

boolean

Methods

cancel()

cancel(): void;

Requests cancellation; idempotent. Ignored once publication has begun.

Returns

void


progress()

progress(): CompactionProgress;

Returns

CompactionProgress


wait()

wait(): Promise<CompactionReport>;

Resolves with the job's report once the worker has released the store; every call resolves with the same report.

Returns

Promise\<CompactionReport>