Skip to main content

workers

@arolariu/website


@arolariu/website / workers

workers

Fileoverview

Public API surface for the Web Worker foundation.

Remarks

Consumers import from this barrel only. The directories host/, runtime/, and react/ are implementation details and may be re-organized without notice.

Worker-side code (inside *.worker.ts files) imports from @/workers/runtime.

client-only: This module imports client-only so any accidental import from a Server Component fails the Next.js build with a clear message rather than at runtime via typeof Worker !== "undefined".

Functions

References

createWorkerHost

Re-exports createWorkerHost


WorkerCrashError

Re-exports WorkerCrashError


WorkerDeadError

Re-exports WorkerDeadError


WorkerError

Re-exports WorkerError


WorkerMessageError

Re-exports WorkerMessageError


WorkerNotAvailableError

Re-exports WorkerNotAvailableError


WorkerTimeoutError

Re-exports WorkerTimeoutError


CreateWorkerHostOptions

Re-exports CreateWorkerHostOptions


WorkerCapabilities

Re-exports WorkerCapabilities


WorkerEvent

Re-exports WorkerEvent


WorkerHost

Re-exports WorkerHost


WorkerHostState

Re-exports WorkerHostState

// was this page useful?