MCPcopy Create free account
hub / github.com/Effect-TS/effect / isWorkerError

Function isWorkerError

packages/effect/src/workers/WorkerError.ts:32–32  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

30 * @since 4.0.0
31 */
32export const isWorkerError = (u: unknown): u is WorkerError => hasProperty(u, TypeId)
33
34/**
35 * Worker error reason for failures while spawning or setting up a worker.

Callers 2

Worker.test.tsFile · 0.90

Calls 1

hasPropertyFunction · 0.90

Tested by

no test coverage detected