Aller au contenu
Français

ParallelismSpawnMessage

Ce contenu n’est pas encore disponible dans votre langue.

ParallelismSpawnMessage = object

Defined in: src/parallelism/SpawnProtocol.ts:19

Main → worker: create actorClass under /user/<name>.

readonly actorClass: string

Defined in: src/parallelism/SpawnProtocol.ts:30

The export name the class was registered under on both sides.


readonly kind: "parallelism-spawn"

Defined in: src/parallelism/SpawnProtocol.ts:20


readonly name: string

Defined in: src/parallelism/SpawnProtocol.ts:22


readonly nameSource: "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.


readonly optional options?: Record<string, unknown>

Defined in: src/parallelism/SpawnProtocol.ts:32

The structured-cloneable subset of the caller’s ActorOptions, if any.


readonly requestId: string

Defined in: src/parallelism/SpawnProtocol.ts:21