effect-io-ai

Package: @effect/platform-bun
Module: BunWorker

BunWorker.layer

Provides the Bun WorkerPlatform together with a Worker.Spawner created from the supplied worker spawning function.

Signature

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

Source

Since v4.0.0