Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorkerPool

Hierarchy

  • WorkerPool

Index

Constructors

Properties

Methods

Constructors

constructor

  • new WorkerPool(name: string, maxCount?: number): WorkerPool

Properties

count

count: number = 0

maxCount

maxCount: number

name

name: string

pool

pool: Worker[] = []

Methods

getNextWorker

  • getNextWorker(): undefined | _Worker

post

  • post(aMessage?: any, transferList?: any, onmessage?: Function, onerror?: Function): this
  • Parameters

    • Default value aMessage: any = {}
    • Optional transferList: any
    • Optional onmessage: Function
    • Optional onerror: Function

    Returns this

terminate

  • terminate(): void

Generated using TypeDoc