Skip to main content Link Search Menu Expand Document (external link)

WorkerError overview

Added in v1.0.0


Table of contents


errors

WorkerError (class)

Signature

export declare class WorkerError

Added in v1.0.0

[WorkerErrorTypeId] (property)

Signature

readonly [WorkerErrorTypeId]: typeof WorkerErrorTypeId

Added in v1.0.0

WorkerErrorFrom (interface)

Signature

export interface WorkerErrorFrom {
  readonly _tag: "WorkerError"
  readonly reason: "spawn" | "decode" | "send" | "unknown" | "encode"
  readonly error: unknown
}

Added in v1.0.0

predicates

isWorkerError

Signature

export declare const isWorkerError: (u: unknown) => u is WorkerError

Added in v1.0.0

type ids

WorkerErrorTypeId

Signature

export declare const WorkerErrorTypeId: typeof WorkerErrorTypeId

Added in v1.0.0

WorkerErrorTypeId (type alias)

Signature

export type WorkerErrorTypeId = typeof WorkerErrorTypeId

Added in v1.0.0