コンテンツにスキップ
日本語

ParallelismOptionsType

このコンテンツはまだ日本語訳がありません。

ParallelismOptionsType = object

Defined in: src/parallelism/ParallelismOptions.ts:57

Plain options-object shape layered over actor-ts.parallelism.*.

readonly optional backend?: WorkerBackend

Defined in: src/parallelism/ParallelismOptions.ts:79

Test seam: the thread implementation behind the mesh.


readonly optional bootstrap?: URL | string

Defined in: src/parallelism/ParallelismOptions.ts:77

The worker entry to spawn instead of the shipped one — the escape hatch for a bundler.


readonly optional bufferSize?: number

Defined in: src/parallelism/ParallelismOptions.ts:75


readonly optional leader?: MeshLeader

Defined in: src/parallelism/ParallelismOptions.ts:73


readonly optional module?: URL | string | ReadonlyArray<URL | string>

Defined in: src/parallelism/ParallelismOptions.ts:69

The module — or modules — whose exported actor classes may be offloaded. Every worker imports it and so does the main thread; a class is matched across the boundary by its export name. When unset, the extension looks for actors.js (or .ts) next to the entry module.

Not a HOCON leaf, for the reason worker-cluster.bootstrap has none: a config file must not decide which code a worker runs.


readonly optional offload?: ReadonlyArray<string>

Defined in: src/parallelism/ParallelismOptions.ts:71

Path patterns of the actors that move to a worker — see PathPattern.


readonly optional placement?: PlacementStrategy

Defined in: src/parallelism/ParallelismOptions.ts:72


readonly optional spawnTimeoutMs?: number

Defined in: src/parallelism/ParallelismOptions.ts:74


readonly optional workers?: number | "auto"

Defined in: src/parallelism/ParallelismOptions.ts:59

0 (off), a worker count, or 'auto' — the available parallelism minus the main thread.