Skip to content

@grabm/abm/experiments / Interface: BrowserBatchOptions ​

Extends ​

Properties ​

createWorker? ​

ts
readonly optional createWorker?: WorkerFactory;

Optional bundler-specific factory; each returned worker is owned by grABM.


onProgress? ​

ts
readonly optional onProgress?: (id, progress) => void;

Parameters ​

id ​

string

progress ​

SimulationProgress

Returns ​

void

Inherited from ​

BatchOptions.onProgress


signal? ​

ts
readonly optional signal?: AbortSignal;

Inherited from ​

BatchOptions.signal


workers? ​

ts
readonly optional workers?: number | "auto";

Defaults to one. Auto leaves one reported CPU free and caps concurrency at four.

Inherited from ​

BatchOptions.workers

Documentation for the grABM library.