Optional
Readonly
Pre-constructed Worker instance. Pass either this OR workerScript — not both.
workerScript
Path / URL to the worker script. Used only when worker is not provided; the driver constructs a Worker from this on demand (Node worker_threads API).
worker
worker_threads
Pre-constructed Worker instance. Pass either this OR
workerScript— not both.