Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WorkerNodeOptions

Hierarchy

Index

Properties

Optional args

args: any

Optional directory

directory: string

Optional imports

imports: string[]

Worker external imports

Optional name

name: string

User friendly name of the node Used for querying a node by its name.

Optional optimizedPull

optimizedPull: boolean

Pull requests skip the worker

Optional poolConcurrency

poolConcurrency: number

Concurrent tasks send to the same worker in the pool

Optional poolSize

poolSize: number

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

Optional services

services: Service[]

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

default

model.findAllServices()

Optional typescript

typescript: boolean

Specify if the worker is written in TypeScript

Optional uid

uid: string

Manually set the unique identifier of the node

Optional worker

worker: string

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