Interface WorkerOptions

Hierarchy-Diagram

UML class diagram of WorkerOptions
Legend
icon for an interface in the UML class diagram interface

Hierarchy

Properties

args?: any
blob?: boolean
directory?: string
imports?: string[]

Worker external imports

poolConcurrency?: number

Concurrent tasks send to the same worker in the pool

poolSize?: number

Pool size, defaults to 4 but should equal the amount of available cores - 1

services?: Service[]

Services to clone from main thread. When not specified it will clone all services

Default

model.findAllServices()
timeout?: number

Timeout spawning

type?: "classic" | "typescript" | "module"

Worker type

worker?: string

Worker runner file. When running in the browser, this is the js file named worker.openhps-core.min.js