Options
All
  • Public
  • Public/Protected
  • All
Menu

@dekkai/workers - v1.2.0

Index

Type aliases

AnyWorker

Type for a raw worker or a wrapped worker on any platform

NodeWorker

NodeWorker: Worker

Worker type in NodeJS

PlatformWorker

PlatformWorker: WebWorker | NodeWorker

Type for a raw worker on any supported platform

TaskExecutor

TaskExecutor: any

Any object added to a WorkerInterface as a task executor must comply with a few rules:

  • Must implement functions as top level properties.
  • Functions that are to be used as tasks must return a TaskResult

Each function exposed in the object as a top level property will be exposed as a task by a WorkerInterface.

A TaskExecutor can be an instance of a class or a plain object with functions as properties.

WebWorker

WebWorker: Worker

Worker type in browsers and deno

Generated using TypeDoc