effect-io-ai

Package: @effect/platform-node
Module: NodeWorker

NodeWorker.layer

Provides the Node WorkerPlatform together with a Worker.Spawner created from the supplied worker or child-process spawning function.

Signature

declare const layer: (spawn: (id: number) => WorkerThreads.Worker | ChildProcess.ChildProcess) => Layer.Layer<Worker.WorkerPlatform | Worker.Spawner>

Source

Since v4.0.0