ParallelismOptionsType
Это содержимое пока не доступно на вашем языке.
ParallelismOptionsType =
object
Defined in: src/parallelism/ParallelismOptions.ts:57
Plain options-object shape layered over actor-ts.parallelism.*.
Properties
Section titled “Properties”backend?
Section titled “backend?”
readonlyoptionalbackend?:WorkerBackend
Defined in: src/parallelism/ParallelismOptions.ts:79
Test seam: the thread implementation behind the mesh.
bootstrap?
Section titled “bootstrap?”
readonlyoptionalbootstrap?: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.
bufferSize?
Section titled “bufferSize?”
readonlyoptionalbufferSize?:number
Defined in: src/parallelism/ParallelismOptions.ts:75
leader?
Section titled “leader?”
readonlyoptionalleader?:MeshLeader
Defined in: src/parallelism/ParallelismOptions.ts:73
module?
Section titled “module?”
readonlyoptionalmodule?: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.
offload?
Section titled “offload?”
readonlyoptionaloffload?:ReadonlyArray<string>
Defined in: src/parallelism/ParallelismOptions.ts:71
Path patterns of the actors that move to a worker — see PathPattern.
placement?
Section titled “placement?”
readonlyoptionalplacement?:PlacementStrategy
Defined in: src/parallelism/ParallelismOptions.ts:72
spawnTimeoutMs?
Section titled “spawnTimeoutMs?”
readonlyoptionalspawnTimeoutMs?:number
Defined in: src/parallelism/ParallelismOptions.ts:74
workers?
Section titled “workers?”
readonlyoptionalworkers?:number|"auto"
Defined in: src/parallelism/ParallelismOptions.ts:59
0 (off), a worker count, or 'auto' — the available parallelism minus the main thread.
