ParallelismSpawnMessage
ParallelismSpawnMessage =
object
Defined in: src/parallelism/SpawnProtocol.ts:19
Main → worker: create actorClass under /user/<name>.
Properties
Section titled “Properties”actorClass
Section titled “actorClass”
readonlyactorClass:string
Defined in: src/parallelism/SpawnProtocol.ts:30
The export name the class was registered under on both sides.
readonlykind:"parallelism-spawn"
Defined in: src/parallelism/SpawnProtocol.ts:20
readonlyname:string
Defined in: src/parallelism/SpawnProtocol.ts:22
nameSource
Section titled “nameSource”
readonlynameSource:"caller"|"generated"
Defined in: src/parallelism/SpawnProtocol.ts:28
Whether the main thread chose the name or generated it for an anonymous
spawn. A generated one starts with the reserved $, which a caller may
not use — so the worker has to create it the way spawnAnonymous would.
options?
Section titled “options?”
readonlyoptionaloptions?:Record<string,unknown>
Defined in: src/parallelism/SpawnProtocol.ts:32
The structured-cloneable subset of the caller’s ActorOptions, if any.
requestId
Section titled “requestId”
readonlyrequestId:string
Defined in: src/parallelism/SpawnProtocol.ts:21
