Home Reference Source
public class | source

ThreadPool

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private
private

_pool: *

private

_queue: *[]

private

Method Summary

Public Methods
public

addTask(taskCallback: *, inputData: *)

public

setWorkers(numWorkers: *)

Private Methods
private

Public Constructors

public constructor() source

Private Members

private _numWorkers: * source

private _pool: * source

private _queue: *[] source

private _updateNumWorkers: boolean source

Public Methods

public addTask(taskCallback: *, inputData: *) source

Params:

NameTypeAttributeDescription
taskCallback *
inputData *

public setWorkers(numWorkers: *) source

Params:

NameTypeAttributeDescription
numWorkers *

Private Methods

private _setUpPoolEvents() source