Skip to content

@grabm/abm/node / Interface: NodeBatchOptions ​

Extends ​

Properties ​

maxHeapMb? ​

ts
readonly optional maxHeapMb?: number;

Optional V8 old-space ceiling per process; not a total resident-memory limit.

Inherited from ​

NodeExecutionOptions.maxHeapMb


maxResourceBytes? ​

ts
readonly optional maxResourceBytes?: number;

Inherited from ​

NodeExecutionOptions.maxResourceBytes


onProgress? ​

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

Parameters ​

id ​

string

progress ​

SimulationProgress

Returns ​

void

Inherited from ​

ts
BatchOptions.onProgress

outputDirectory? ​

ts
readonly optional outputDirectory?: string;

Existing parent directory. Each case gets a fresh child directory; omitted returns in-memory results.


signal? ​

ts
readonly optional signal?: AbortSignal;

Inherited from ​

ts
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 ​

ts
BatchOptions.workers

Documentation for the grABM library.