Reference Source
public class | source

WorkerPool

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

pool: *

public

queue: *[]

public
public
public

workers: *[]

public

Method Summary

Public Methods
public
public

postMessage(msg: *, transfer: *): *

public

setWorkerCreator(workerCreator: *)

public

setWorkerLimit(pool: *)

Public Constructors

public constructor() source

Public Members

public pool: * source

public queue: *[] source

public workerCreator: * source

public workerStatus: number source

public workers: *[] source

public workersResolve: *[] source

Public Methods

public destroy() source

public postMessage(msg: *, transfer: *): * source

Params:

NameTypeAttributeDescription
msg *
transfer *

Return:

*

public setWorkerCreator(workerCreator: *) source

Params:

NameTypeAttributeDescription
workerCreator *

public setWorkerLimit(pool: *) source

Params:

NameTypeAttributeDescription
pool *