util.Pool Class
Description
Thread pool.
Constructor
util.Pool
(worker, [concurrency])Methods
_insert
(tasks, first, [callback]) privateend
Terminates all workers.
process
privateStarts distributing tasks to each worker.
push
(tasks, [callback])unshift
(tasks, [callback])Properties
concurrency
Concurrency.
drain
This function is invoked when the last task in the pool is done.
empty
This function is invoked when the last task in the pool is started.
saturated
This function is invoked when the number of pending tasks equals to the concurrency of the pool.
tasks
privateTasks.
workers
privateWorkers.