Constructors
constructor
- new WorkerPool(name: string, maxCount?: number): WorkerPool
-
Parameters
-
name: string
-
Default value maxCount: number = 2
Properties
maxCount
maxCount: number
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