Skip to content

@lelantos-org/sdk / advanced / WorkerPoolScanner

Class: WorkerPoolScanner ​

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:13

Implements ​

Indexable ​

ts
[key: number]: () => Promise<void>

Constructors ​

Constructor ​

ts
new WorkerPoolScanner(opts): WorkerPoolScanner;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:23

Parameters ​

ParameterType
optsWorkerPoolScannerOpts

Returns ​

WorkerPoolScanner

Properties ​

lastStats ​

ts
lastStats: ScanStats;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:18

Tallies from the most recent scan, summed over its chunks. All zero while that scan runs and after one that failed.

Methods ​

dispose() ​

ts
dispose(): Promise<void>;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:32

Release held resources (workers, native handles).

Returns ​

Promise<void>

Implementation of ​

Scanner.dispose


scan() ​

ts
scan(ivk, inputs): Promise<ScanHit[]>;

Defined in: @lelantos-org/sdk/dist/sync/worker/pool.d.ts:30

Trial-decrypt inputs with ivk. Result order must match input order (filtered to hits).

For FMD filtering use syncStrategy: { kind: "matches", token }, which filters server-side, trading some anonymity for bandwidth.

Parameters ​

ParameterType
ivkbigint
inputsScanInput[]

Returns ​

Promise<ScanHit[]>

Implementation of ​

Scanner.scan