Pool busy event emitting on all pool types (#241)
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Sat, 6 Mar 2021 20:08:08 +0000 (21:08 +0100)
committerGitHub <noreply@github.com>
Sat, 6 Mar 2021 20:08:08 +0000 (21:08 +0100)
Co-authored-by: Shinigami <chrissi92@hotmail.de>
Co-authored-by: Shinigami92 <chrissi92@hotmail.de>
32 files changed:
CHANGELOG.md
benchmarks/versus-external-pools/BENCH-100000.MD
docs/_config.yml
docs/assets/js/search.js
docs/classes/abstractworker.html
docs/classes/clusterworker.html
docs/classes/dynamicclusterpool.html
docs/classes/dynamicthreadpool.html
docs/classes/fixedclusterpool.html
docs/classes/fixedthreadpool.html
docs/classes/threadworker.html
docs/index.html
docs/interfaces/clusterpooloptions.html
docs/interfaces/ipool.html
docs/interfaces/iworker.html
docs/interfaces/pooloptions.html
docs/interfaces/workeroptions.html
package.json
src/pools/abstract-pool.ts
src/pools/cluster/dynamic.ts
src/pools/cluster/fixed.ts
src/pools/pool-internal.ts
src/pools/selection-strategies.ts
src/pools/thread/dynamic.ts
src/pools/thread/fixed.ts
tests/pools/abstract/abstract-pool.test.js
tests/pools/cluster/dynamic.test.js
tests/pools/cluster/fixed.test.js
tests/pools/thread/dynamic.test.js
tests/pools/thread/fixed.test.js
tests/worker-files/thread/asyncErrorWorker.js [new file with mode: 0644]
tests/worker-files/thread/errorWorker.js

index 49f58dc14e354354be2dbb9d502022ecd6c2a8aa..211ade56ed3c6528ee1b5c5446bdee50a8ece7f4 100644 (file)
@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 ### Breaking Changes
 
-- `FullPool` event is now renamed to `busy`.
+- `FullPool` event is now renamed to `busy` and emitted on all pool types.
 - `maxInactiveTime` on `ThreadWorker` default behavior is now changed, if you want to keep the old behavior set `killBehavior` to `KillBehaviors.HARD`.
   _Find more details on our JSDoc._
 
index 180a1634bca4fa84f2d62c179d1d17d77eb6a1a4..5aa5adad4ad1386cb49c958e68e5029c0c523f89 100644 (file)
@@ -1,9 +1,9 @@
-| Command | Mean [s] | Min [s] | Max [s] | Relative |
-|:---|---:|---:|---:|---:|
-| `node dynamic-piscina.js` | 47.192 ± 0.607 | 46.774 | 48.804 | 1.07 ± 0.01 |
-| `node fixed-piscina.js` | 47.046 ± 0.112 | 46.823 | 47.178 | 1.07 ± 0.00 |
-| `node dynamic-poolifier.js` | 44.301 ± 0.989 | 43.718 | 46.994 | 1.00 ± 0.02 |
-| `node fixed-poolifier.js` | 44.115 ± 0.174 | 43.843 | 44.510 | 1.00 |
-| `node static-suchmokuo-node-worker-threads-pool.js` | 48.282 ± 1.857 | 46.361 | 50.268 | 1.09 ± 0.04 |
-| `node dynamic-suchmokuo-node-worker-threads-pool.js` | 60.111 ± 2.401 | 57.752 | 63.011 | 1.36 ± 0.05 |
-| `node threadjs.js` | 131.412 ± 4.210 | 122.872 | 138.506 | 2.98 ± 0.10 |
+| Command                                              |        Mean [s] | Min [s] | Max [s] |    Relative |
+| :--------------------------------------------------- | --------------: | ------: | ------: | ----------: |
+| `node dynamic-piscina.js`                            |  47.192 ± 0.607 |  46.774 |  48.804 | 1.07 ± 0.01 |
+| `node fixed-piscina.js`                              |  47.046 ± 0.112 |  46.823 |  47.178 | 1.07 ± 0.00 |
+| `node dynamic-poolifier.js`                          |  44.301 ± 0.989 |  43.718 |  46.994 | 1.00 ± 0.02 |
+| `node fixed-poolifier.js`                            |  44.115 ± 0.174 |  43.843 |  44.510 |        1.00 |
+| `node static-suchmokuo-node-worker-threads-pool.js`  |  48.282 ± 1.857 |  46.361 |  50.268 | 1.09 ± 0.04 |
+| `node dynamic-suchmokuo-node-worker-threads-pool.js` |  60.111 ± 2.401 |  57.752 |  63.011 | 1.36 ± 0.05 |
+| `node threadjs.js`                                   | 131.412 ± 4.210 | 122.872 | 138.506 | 2.98 ± 0.10 |
index fc24e7a62dc288c776f8448cd073a01e7721ed32..8bbf79438eebb53b5c86f662f48cd668072f6564 100644 (file)
@@ -1 +1 @@
-theme: jekyll-theme-hacker
\ No newline at end of file
+theme: jekyll-theme-hacker
index 90867cb645e7230818597414d60dbb6dca51567b..df441e51df5e65b1f9149840fc9b957ef48748f5 100644 (file)
@@ -1 +1 @@
-window.searchData = {"kinds":{"32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"ErrorHandler","url":"index.html#errorhandler","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":1,"kind":65536,"name":"__type","url":"index.html#errorhandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ErrorHandler"},{"id":2,"kind":4194304,"name":"ExitHandler","url":"index.html#exithandler","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":3,"kind":65536,"name":"__type","url":"index.html#exithandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ExitHandler"},{"id":4,"kind":256,"name":"IWorker","url":"interfaces/iworker.html","classes":"tsd-kind-interface"},{"id":5,"kind":2048,"name":"on","url":"interfaces/iworker.html#on","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IWorker"},{"id":6,"kind":2048,"name":"once","url":"interfaces/iworker.html#once","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IWorker"},{"id":7,"kind":4194304,"name":"OnlineHandler","url":"index.html#onlinehandler","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":8,"kind":65536,"name":"__type","url":"index.html#onlinehandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"OnlineHandler"},{"id":9,"kind":256,"name":"PoolOptions","url":"interfaces/pooloptions.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":10,"kind":1024,"name":"errorHandler","url":"interfaces/pooloptions.html#errorhandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":11,"kind":1024,"name":"onlineHandler","url":"interfaces/pooloptions.html#onlinehandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":12,"kind":1024,"name":"exitHandler","url":"interfaces/pooloptions.html#exithandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":13,"kind":1024,"name":"workerChoiceStrategy","url":"interfaces/pooloptions.html#workerchoicestrategy","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":14,"kind":128,"name":"DynamicClusterPool","url":"classes/dynamicclusterpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":15,"kind":512,"name":"constructor","url":"classes/dynamicclusterpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicClusterPool"},{"id":16,"kind":1024,"name":"max","url":"classes/dynamicclusterpool.html#max","classes":"tsd-kind-property tsd-parent-kind-class","parent":"DynamicClusterPool"},{"id":17,"kind":262144,"name":"dynamic","url":"classes/dynamicclusterpool.html#dynamic","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":18,"kind":1024,"name":"opts","url":"classes/dynamicclusterpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":19,"kind":2048,"name":"setupHook","url":"classes/dynamicclusterpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":20,"kind":2048,"name":"isMain","url":"classes/dynamicclusterpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":21,"kind":2048,"name":"destroyWorker","url":"classes/dynamicclusterpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":22,"kind":2048,"name":"sendToWorker","url":"classes/dynamicclusterpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":23,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/dynamicclusterpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicClusterPool"},{"id":24,"kind":2048,"name":"createWorker","url":"classes/dynamicclusterpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":25,"kind":2048,"name":"afterWorkerSetup","url":"classes/dynamicclusterpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":26,"kind":1024,"name":"workers","url":"classes/dynamicclusterpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":27,"kind":1024,"name":"tasks","url":"classes/dynamicclusterpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":28,"kind":1024,"name":"emitter","url":"classes/dynamicclusterpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":29,"kind":1024,"name":"promiseMap","url":"classes/dynamicclusterpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":30,"kind":1024,"name":"nextMessageId","url":"classes/dynamicclusterpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":31,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/dynamicclusterpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":32,"kind":1024,"name":"numberOfWorkers","url":"classes/dynamicclusterpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":33,"kind":1024,"name":"filePath","url":"classes/dynamicclusterpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":34,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/dynamicclusterpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":35,"kind":2048,"name":"execute","url":"classes/dynamicclusterpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":36,"kind":2048,"name":"destroy","url":"classes/dynamicclusterpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":37,"kind":2048,"name":"increaseWorkersTask","url":"classes/dynamicclusterpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":38,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/dynamicclusterpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":39,"kind":2048,"name":"removeWorker","url":"classes/dynamicclusterpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":40,"kind":2048,"name":"chooseWorker","url":"classes/dynamicclusterpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":41,"kind":2048,"name":"internalExecute","url":"classes/dynamicclusterpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":42,"kind":2048,"name":"createAndSetupWorker","url":"classes/dynamicclusterpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":43,"kind":2048,"name":"workerListener","url":"classes/dynamicclusterpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":44,"kind":128,"name":"FixedClusterPool","url":"classes/fixedclusterpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":45,"kind":512,"name":"constructor","url":"classes/fixedclusterpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedClusterPool"},{"id":46,"kind":1024,"name":"opts","url":"classes/fixedclusterpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":47,"kind":2048,"name":"setupHook","url":"classes/fixedclusterpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":48,"kind":2048,"name":"isMain","url":"classes/fixedclusterpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":49,"kind":2048,"name":"destroyWorker","url":"classes/fixedclusterpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":50,"kind":2048,"name":"sendToWorker","url":"classes/fixedclusterpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":51,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/fixedclusterpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedClusterPool"},{"id":52,"kind":2048,"name":"createWorker","url":"classes/fixedclusterpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":53,"kind":2048,"name":"afterWorkerSetup","url":"classes/fixedclusterpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":54,"kind":1024,"name":"workers","url":"classes/fixedclusterpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":55,"kind":1024,"name":"tasks","url":"classes/fixedclusterpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":56,"kind":1024,"name":"emitter","url":"classes/fixedclusterpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":57,"kind":1024,"name":"promiseMap","url":"classes/fixedclusterpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":58,"kind":1024,"name":"nextMessageId","url":"classes/fixedclusterpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":59,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/fixedclusterpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":60,"kind":1024,"name":"numberOfWorkers","url":"classes/fixedclusterpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":61,"kind":1024,"name":"filePath","url":"classes/fixedclusterpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":62,"kind":262144,"name":"dynamic","url":"classes/fixedclusterpool.html#dynamic","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":63,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/fixedclusterpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":64,"kind":2048,"name":"execute","url":"classes/fixedclusterpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":65,"kind":2048,"name":"destroy","url":"classes/fixedclusterpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":66,"kind":2048,"name":"increaseWorkersTask","url":"classes/fixedclusterpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":67,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/fixedclusterpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":68,"kind":2048,"name":"removeWorker","url":"classes/fixedclusterpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":69,"kind":2048,"name":"chooseWorker","url":"classes/fixedclusterpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":70,"kind":2048,"name":"internalExecute","url":"classes/fixedclusterpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":71,"kind":2048,"name":"createAndSetupWorker","url":"classes/fixedclusterpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":72,"kind":2048,"name":"workerListener","url":"classes/fixedclusterpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":73,"kind":256,"name":"ClusterPoolOptions","url":"interfaces/clusterpooloptions.html","classes":"tsd-kind-interface"},{"id":74,"kind":1024,"name":"env","url":"interfaces/clusterpooloptions.html#env","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClusterPoolOptions"},{"id":75,"kind":1024,"name":"errorHandler","url":"interfaces/clusterpooloptions.html#errorhandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":76,"kind":1024,"name":"onlineHandler","url":"interfaces/clusterpooloptions.html#onlinehandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":77,"kind":1024,"name":"exitHandler","url":"interfaces/clusterpooloptions.html#exithandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":78,"kind":1024,"name":"workerChoiceStrategy","url":"interfaces/clusterpooloptions.html#workerchoicestrategy","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":79,"kind":256,"name":"IPool","url":"interfaces/ipool.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":80,"kind":2048,"name":"execute","url":"interfaces/ipool.html#execute","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":81,"kind":2048,"name":"destroy","url":"interfaces/ipool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":82,"kind":2048,"name":"setWorkerChoiceStrategy","url":"interfaces/ipool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":83,"kind":32,"name":"WorkerChoiceStrategies","url":"index.html#workerchoicestrategies","classes":"tsd-kind-variable"},{"id":84,"kind":4194304,"name":"WorkerChoiceStrategy","url":"index.html#workerchoicestrategy","classes":"tsd-kind-type-alias"},{"id":85,"kind":128,"name":"DynamicThreadPool","url":"classes/dynamicthreadpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":86,"kind":512,"name":"constructor","url":"classes/dynamicthreadpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicThreadPool"},{"id":87,"kind":1024,"name":"max","url":"classes/dynamicthreadpool.html#max","classes":"tsd-kind-property tsd-parent-kind-class","parent":"DynamicThreadPool"},{"id":88,"kind":262144,"name":"dynamic","url":"classes/dynamicthreadpool.html#dynamic","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":89,"kind":2048,"name":"isMain","url":"classes/dynamicthreadpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":90,"kind":2048,"name":"destroyWorker","url":"classes/dynamicthreadpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":91,"kind":2048,"name":"sendToWorker","url":"classes/dynamicthreadpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":92,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/dynamicthreadpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicThreadPool"},{"id":93,"kind":2048,"name":"createWorker","url":"classes/dynamicthreadpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":94,"kind":2048,"name":"afterWorkerSetup","url":"classes/dynamicthreadpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":95,"kind":1024,"name":"workers","url":"classes/dynamicthreadpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":96,"kind":1024,"name":"tasks","url":"classes/dynamicthreadpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":97,"kind":1024,"name":"emitter","url":"classes/dynamicthreadpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":98,"kind":1024,"name":"promiseMap","url":"classes/dynamicthreadpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":99,"kind":1024,"name":"nextMessageId","url":"classes/dynamicthreadpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":100,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/dynamicthreadpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":101,"kind":1024,"name":"numberOfWorkers","url":"classes/dynamicthreadpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":102,"kind":1024,"name":"filePath","url":"classes/dynamicthreadpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":103,"kind":1024,"name":"opts","url":"classes/dynamicthreadpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":104,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/dynamicthreadpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":105,"kind":2048,"name":"execute","url":"classes/dynamicthreadpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":106,"kind":2048,"name":"destroy","url":"classes/dynamicthreadpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":107,"kind":2048,"name":"setupHook","url":"classes/dynamicthreadpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":108,"kind":2048,"name":"increaseWorkersTask","url":"classes/dynamicthreadpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":109,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/dynamicthreadpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":110,"kind":2048,"name":"removeWorker","url":"classes/dynamicthreadpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":111,"kind":2048,"name":"chooseWorker","url":"classes/dynamicthreadpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":112,"kind":2048,"name":"internalExecute","url":"classes/dynamicthreadpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":113,"kind":2048,"name":"createAndSetupWorker","url":"classes/dynamicthreadpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":114,"kind":2048,"name":"workerListener","url":"classes/dynamicthreadpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":115,"kind":128,"name":"FixedThreadPool","url":"classes/fixedthreadpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":116,"kind":512,"name":"constructor","url":"classes/fixedthreadpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedThreadPool"},{"id":117,"kind":2048,"name":"isMain","url":"classes/fixedthreadpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":118,"kind":2048,"name":"destroyWorker","url":"classes/fixedthreadpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":119,"kind":2048,"name":"sendToWorker","url":"classes/fixedthreadpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":120,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/fixedthreadpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedThreadPool"},{"id":121,"kind":2048,"name":"createWorker","url":"classes/fixedthreadpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":122,"kind":2048,"name":"afterWorkerSetup","url":"classes/fixedthreadpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":123,"kind":1024,"name":"workers","url":"classes/fixedthreadpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":124,"kind":1024,"name":"tasks","url":"classes/fixedthreadpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":125,"kind":1024,"name":"emitter","url":"classes/fixedthreadpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":126,"kind":1024,"name":"promiseMap","url":"classes/fixedthreadpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":127,"kind":1024,"name":"nextMessageId","url":"classes/fixedthreadpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":128,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/fixedthreadpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":129,"kind":1024,"name":"numberOfWorkers","url":"classes/fixedthreadpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":130,"kind":1024,"name":"filePath","url":"classes/fixedthreadpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":131,"kind":1024,"name":"opts","url":"classes/fixedthreadpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":132,"kind":262144,"name":"dynamic","url":"classes/fixedthreadpool.html#dynamic","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":133,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/fixedthreadpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":134,"kind":2048,"name":"execute","url":"classes/fixedthreadpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":135,"kind":2048,"name":"destroy","url":"classes/fixedthreadpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":136,"kind":2048,"name":"setupHook","url":"classes/fixedthreadpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":137,"kind":2048,"name":"increaseWorkersTask","url":"classes/fixedthreadpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":138,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/fixedthreadpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":139,"kind":2048,"name":"removeWorker","url":"classes/fixedthreadpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":140,"kind":2048,"name":"chooseWorker","url":"classes/fixedthreadpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":141,"kind":2048,"name":"internalExecute","url":"classes/fixedthreadpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":142,"kind":2048,"name":"createAndSetupWorker","url":"classes/fixedthreadpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":143,"kind":2048,"name":"workerListener","url":"classes/fixedthreadpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":144,"kind":4194304,"name":"ThreadWorkerWithMessageChannel","url":"index.html#threadworkerwithmessagechannel","classes":"tsd-kind-type-alias"},{"id":145,"kind":128,"name":"AbstractWorker","url":"classes/abstractworker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":146,"kind":512,"name":"constructor","url":"classes/abstractworker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"AbstractWorker"},{"id":147,"kind":1024,"name":"maxInactiveTime","url":"classes/abstractworker.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":148,"kind":1024,"name":"killBehavior","url":"classes/abstractworker.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":149,"kind":1024,"name":"async","url":"classes/abstractworker.html#async","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":150,"kind":1024,"name":"lastTask","url":"classes/abstractworker.html#lasttask","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":151,"kind":1024,"name":"interval","url":"classes/abstractworker.html#interval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":152,"kind":1024,"name":"mainWorker","url":"classes/abstractworker.html#mainworker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":153,"kind":1024,"name":"opts","url":"classes/abstractworker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"AbstractWorker"},{"id":154,"kind":2048,"name":"checkFunctionInput","url":"classes/abstractworker.html#checkfunctioninput","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"AbstractWorker"},{"id":155,"kind":2048,"name":"getMainWorker","url":"classes/abstractworker.html#getmainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":156,"kind":2048,"name":"sendToMainWorker","url":"classes/abstractworker.html#sendtomainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":157,"kind":2048,"name":"checkAlive","url":"classes/abstractworker.html#checkalive","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":158,"kind":2048,"name":"handleError","url":"classes/abstractworker.html#handleerror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":159,"kind":2048,"name":"run","url":"classes/abstractworker.html#run","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":160,"kind":2048,"name":"runAsync","url":"classes/abstractworker.html#runasync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":161,"kind":128,"name":"ClusterWorker","url":"classes/clusterworker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":162,"kind":512,"name":"constructor","url":"classes/clusterworker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ClusterWorker"},{"id":163,"kind":2048,"name":"sendToMainWorker","url":"classes/clusterworker.html#sendtomainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"ClusterWorker"},{"id":164,"kind":2048,"name":"handleError","url":"classes/clusterworker.html#handleerror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"ClusterWorker"},{"id":165,"kind":1024,"name":"maxInactiveTime","url":"classes/clusterworker.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":166,"kind":1024,"name":"killBehavior","url":"classes/clusterworker.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":167,"kind":1024,"name":"async","url":"classes/clusterworker.html#async","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":168,"kind":1024,"name":"lastTask","url":"classes/clusterworker.html#lasttask","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":169,"kind":1024,"name":"interval","url":"classes/clusterworker.html#interval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":170,"kind":1024,"name":"mainWorker","url":"classes/clusterworker.html#mainworker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":171,"kind":1024,"name":"opts","url":"classes/clusterworker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClusterWorker"},{"id":172,"kind":2048,"name":"getMainWorker","url":"classes/clusterworker.html#getmainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":173,"kind":2048,"name":"checkAlive","url":"classes/clusterworker.html#checkalive","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":174,"kind":2048,"name":"run","url":"classes/clusterworker.html#run","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":175,"kind":2048,"name":"runAsync","url":"classes/clusterworker.html#runasync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":176,"kind":128,"name":"ThreadWorker","url":"classes/threadworker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":177,"kind":512,"name":"constructor","url":"classes/threadworker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ThreadWorker"},{"id":178,"kind":2048,"name":"sendToMainWorker","url":"classes/threadworker.html#sendtomainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"ThreadWorker"},{"id":179,"kind":1024,"name":"maxInactiveTime","url":"classes/threadworker.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":180,"kind":1024,"name":"killBehavior","url":"classes/threadworker.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":181,"kind":1024,"name":"async","url":"classes/threadworker.html#async","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":182,"kind":1024,"name":"lastTask","url":"classes/threadworker.html#lasttask","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":183,"kind":1024,"name":"interval","url":"classes/threadworker.html#interval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":184,"kind":1024,"name":"mainWorker","url":"classes/threadworker.html#mainworker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":185,"kind":1024,"name":"opts","url":"classes/threadworker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ThreadWorker"},{"id":186,"kind":2048,"name":"getMainWorker","url":"classes/threadworker.html#getmainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":187,"kind":2048,"name":"checkAlive","url":"classes/threadworker.html#checkalive","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":188,"kind":2048,"name":"handleError","url":"classes/threadworker.html#handleerror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":189,"kind":2048,"name":"run","url":"classes/threadworker.html#run","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":190,"kind":2048,"name":"runAsync","url":"classes/threadworker.html#runasync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":191,"kind":32,"name":"KillBehaviors","url":"index.html#killbehaviors","classes":"tsd-kind-variable"},{"id":192,"kind":4194304,"name":"KillBehavior","url":"index.html#killbehavior","classes":"tsd-kind-type-alias"},{"id":193,"kind":256,"name":"WorkerOptions","url":"interfaces/workeroptions.html","classes":"tsd-kind-interface"},{"id":194,"kind":1024,"name":"maxInactiveTime","url":"interfaces/workeroptions.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"},{"id":195,"kind":1024,"name":"async","url":"interfaces/workeroptions.html#async","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"},{"id":196,"kind":1024,"name":"killBehavior","url":"interfaces/workeroptions.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,37.842]],["parent/0",[]],["name/1",[1,40.355]],["parent/1",[0,3.617]],["name/2",[2,37.842]],["parent/2",[]],["name/3",[1,40.355]],["parent/3",[2,3.617]],["name/4",[3,40.355]],["parent/4",[]],["name/5",[4,48.828]],["parent/5",[3,3.857]],["name/6",[5,48.828]],["parent/6",[3,3.857]],["name/7",[6,37.842]],["parent/7",[]],["name/8",[1,40.355]],["parent/8",[6,3.617]],["name/9",[7,35.835]],["parent/9",[]],["name/10",[0,37.842]],["parent/10",[7,3.425]],["name/11",[6,37.842]],["parent/11",[7,3.425]],["name/12",[2,37.842]],["parent/12",[7,3.425]],["name/13",[8,40.355]],["parent/13",[7,3.425]],["name/14",[9,18.705]],["parent/14",[]],["name/15",[10,32.734]],["parent/15",[9,1.788]],["name/16",[11,43.72]],["parent/16",[9,1.788]],["name/17",[12,37.842]],["parent/17",[9,1.788]],["name/18",[13,32.734]],["parent/18",[9,1.788]],["name/19",[14,37.842]],["parent/19",[9,1.788]],["name/20",[15,37.842]],["parent/20",[9,1.788]],["name/21",[16,37.842]],["parent/21",[9,1.788]],["name/22",[17,37.842]],["parent/22",[9,1.788]],["name/23",[18,37.842]],["parent/23",[9,1.788]],["name/24",[19,37.842]],["parent/24",[9,1.788]],["name/25",[20,37.842]],["parent/25",[9,1.788]],["name/26",[21,37.842]],["parent/26",[9,1.788]],["name/27",[22,37.842]],["parent/27",[9,1.788]],["name/28",[23,37.842]],["parent/28",[9,1.788]],["name/29",[24,37.842]],["parent/29",[9,1.788]],["name/30",[25,37.842]],["parent/30",[9,1.788]],["name/31",[26,37.842]],["parent/31",[9,1.788]],["name/32",[27,37.842]],["parent/32",[9,1.788]],["name/33",[28,37.842]],["parent/33",[9,1.788]],["name/34",[29,35.835]],["parent/34",[9,1.788]],["name/35",[30,35.835]],["parent/35",[9,1.788]],["name/36",[31,35.835]],["parent/36",[9,1.788]],["name/37",[32,37.842]],["parent/37",[9,1.788]],["name/38",[33,37.842]],["parent/38",[9,1.788]],["name/39",[34,37.842]],["parent/39",[9,1.788]],["name/40",[35,37.842]],["parent/40",[9,1.788]],["name/41",[36,37.842]],["parent/41",[9,1.788]],["name/42",[37,37.842]],["parent/42",[9,1.788]],["name/43",[38,37.842]],["parent/43",[9,1.788]],["name/44",[39,19.039]],["parent/44",[]],["name/45",[10,32.734]],["parent/45",[39,1.82]],["name/46",[13,32.734]],["parent/46",[39,1.82]],["name/47",[14,37.842]],["parent/47",[39,1.82]],["name/48",[15,37.842]],["parent/48",[39,1.82]],["name/49",[16,37.842]],["parent/49",[39,1.82]],["name/50",[17,37.842]],["parent/50",[39,1.82]],["name/51",[18,37.842]],["parent/51",[39,1.82]],["name/52",[19,37.842]],["parent/52",[39,1.82]],["name/53",[20,37.842]],["parent/53",[39,1.82]],["name/54",[21,37.842]],["parent/54",[39,1.82]],["name/55",[22,37.842]],["parent/55",[39,1.82]],["name/56",[23,37.842]],["parent/56",[39,1.82]],["name/57",[24,37.842]],["parent/57",[39,1.82]],["name/58",[25,37.842]],["parent/58",[39,1.82]],["name/59",[26,37.842]],["parent/59",[39,1.82]],["name/60",[27,37.842]],["parent/60",[39,1.82]],["name/61",[28,37.842]],["parent/61",[39,1.82]],["name/62",[12,37.842]],["parent/62",[39,1.82]],["name/63",[29,35.835]],["parent/63",[39,1.82]],["name/64",[30,35.835]],["parent/64",[39,1.82]],["name/65",[31,35.835]],["parent/65",[39,1.82]],["name/66",[32,37.842]],["parent/66",[39,1.82]],["name/67",[33,37.842]],["parent/67",[39,1.82]],["name/68",[34,37.842]],["parent/68",[39,1.82]],["name/69",[35,37.842]],["parent/69",[39,1.82]],["name/70",[36,37.842]],["parent/70",[39,1.82]],["name/71",[37,37.842]],["parent/71",[39,1.82]],["name/72",[38,37.842]],["parent/72",[39,1.82]],["name/73",[40,34.165]],["parent/73",[]],["name/74",[41,48.828]],["parent/74",[40,3.266]],["name/75",[0,37.842]],["parent/75",[40,3.266]],["name/76",[6,37.842]],["parent/76",[40,3.266]],["name/77",[2,37.842]],["parent/77",[40,3.266]],["name/78",[8,40.355]],["parent/78",[40,3.266]],["name/79",[42,37.842]],["parent/79",[]],["name/80",[30,35.835]],["parent/80",[42,3.617]],["name/81",[31,35.835]],["parent/81",[42,3.617]],["name/82",[29,35.835]],["parent/82",[42,3.617]],["name/83",[43,48.828]],["parent/83",[]],["name/84",[8,40.355]],["parent/84",[]],["name/85",[44,18.705]],["parent/85",[]],["name/86",[10,32.734]],["parent/86",[44,1.788]],["name/87",[11,43.72]],["parent/87",[44,1.788]],["name/88",[12,37.842]],["parent/88",[44,1.788]],["name/89",[15,37.842]],["parent/89",[44,1.788]],["name/90",[16,37.842]],["parent/90",[44,1.788]],["name/91",[17,37.842]],["parent/91",[44,1.788]],["name/92",[18,37.842]],["parent/92",[44,1.788]],["name/93",[19,37.842]],["parent/93",[44,1.788]],["name/94",[20,37.842]],["parent/94",[44,1.788]],["name/95",[21,37.842]],["parent/95",[44,1.788]],["name/96",[22,37.842]],["parent/96",[44,1.788]],["name/97",[23,37.842]],["parent/97",[44,1.788]],["name/98",[24,37.842]],["parent/98",[44,1.788]],["name/99",[25,37.842]],["parent/99",[44,1.788]],["name/100",[26,37.842]],["parent/100",[44,1.788]],["name/101",[27,37.842]],["parent/101",[44,1.788]],["name/102",[28,37.842]],["parent/102",[44,1.788]],["name/103",[13,32.734]],["parent/103",[44,1.788]],["name/104",[29,35.835]],["parent/104",[44,1.788]],["name/105",[30,35.835]],["parent/105",[44,1.788]],["name/106",[31,35.835]],["parent/106",[44,1.788]],["name/107",[14,37.842]],["parent/107",[44,1.788]],["name/108",[32,37.842]],["parent/108",[44,1.788]],["name/109",[33,37.842]],["parent/109",[44,1.788]],["name/110",[34,37.842]],["parent/110",[44,1.788]],["name/111",[35,37.842]],["parent/111",[44,1.788]],["name/112",[36,37.842]],["parent/112",[44,1.788]],["name/113",[37,37.842]],["parent/113",[44,1.788]],["name/114",[38,37.842]],["parent/114",[44,1.788]],["name/115",[45,19.039]],["parent/115",[]],["name/116",[10,32.734]],["parent/116",[45,1.82]],["name/117",[15,37.842]],["parent/117",[45,1.82]],["name/118",[16,37.842]],["parent/118",[45,1.82]],["name/119",[17,37.842]],["parent/119",[45,1.82]],["name/120",[18,37.842]],["parent/120",[45,1.82]],["name/121",[19,37.842]],["parent/121",[45,1.82]],["name/122",[20,37.842]],["parent/122",[45,1.82]],["name/123",[21,37.842]],["parent/123",[45,1.82]],["name/124",[22,37.842]],["parent/124",[45,1.82]],["name/125",[23,37.842]],["parent/125",[45,1.82]],["name/126",[24,37.842]],["parent/126",[45,1.82]],["name/127",[25,37.842]],["parent/127",[45,1.82]],["name/128",[26,37.842]],["parent/128",[45,1.82]],["name/129",[27,37.842]],["parent/129",[45,1.82]],["name/130",[28,37.842]],["parent/130",[45,1.82]],["name/131",[13,32.734]],["parent/131",[45,1.82]],["name/132",[12,37.842]],["parent/132",[45,1.82]],["name/133",[29,35.835]],["parent/133",[45,1.82]],["name/134",[30,35.835]],["parent/134",[45,1.82]],["name/135",[31,35.835]],["parent/135",[45,1.82]],["name/136",[14,37.842]],["parent/136",[45,1.82]],["name/137",[32,37.842]],["parent/137",[45,1.82]],["name/138",[33,37.842]],["parent/138",[45,1.82]],["name/139",[34,37.842]],["parent/139",[45,1.82]],["name/140",[35,37.842]],["parent/140",[45,1.82]],["name/141",[36,37.842]],["parent/141",[45,1.82]],["name/142",[37,37.842]],["parent/142",[45,1.82]],["name/143",[38,37.842]],["parent/143",[45,1.82]],["name/144",[46,48.828]],["parent/144",[]],["name/145",[47,24.849]],["parent/145",[]],["name/146",[10,32.734]],["parent/146",[47,2.375]],["name/147",[48,37.842]],["parent/147",[47,2.375]],["name/148",[49,35.835]],["parent/148",[47,2.375]],["name/149",[50,37.842]],["parent/149",[47,2.375]],["name/150",[51,40.355]],["parent/150",[47,2.375]],["name/151",[52,40.355]],["parent/151",[47,2.375]],["name/152",[53,40.355]],["parent/152",[47,2.375]],["name/153",[13,32.734]],["parent/153",[47,2.375]],["name/154",[54,48.828]],["parent/154",[47,2.375]],["name/155",[55,40.355]],["parent/155",[47,2.375]],["name/156",[56,40.355]],["parent/156",[47,2.375]],["name/157",[57,40.355]],["parent/157",[47,2.375]],["name/158",[58,40.355]],["parent/158",[47,2.375]],["name/159",[59,40.355]],["parent/159",[47,2.375]],["name/160",[60,40.355]],["parent/160",[47,2.375]],["name/161",[61,25.474]],["parent/161",[]],["name/162",[10,32.734]],["parent/162",[61,2.435]],["name/163",[56,40.355]],["parent/163",[61,2.435]],["name/164",[58,40.355]],["parent/164",[61,2.435]],["name/165",[48,37.842]],["parent/165",[61,2.435]],["name/166",[49,35.835]],["parent/166",[61,2.435]],["name/167",[50,37.842]],["parent/167",[61,2.435]],["name/168",[51,40.355]],["parent/168",[61,2.435]],["name/169",[52,40.355]],["parent/169",[61,2.435]],["name/170",[53,40.355]],["parent/170",[61,2.435]],["name/171",[13,32.734]],["parent/171",[61,2.435]],["name/172",[55,40.355]],["parent/172",[61,2.435]],["name/173",[57,40.355]],["parent/173",[61,2.435]],["name/174",[59,40.355]],["parent/174",[61,2.435]],["name/175",[60,40.355]],["parent/175",[61,2.435]],["name/176",[62,25.474]],["parent/176",[]],["name/177",[10,32.734]],["parent/177",[62,2.435]],["name/178",[56,40.355]],["parent/178",[62,2.435]],["name/179",[48,37.842]],["parent/179",[62,2.435]],["name/180",[49,35.835]],["parent/180",[62,2.435]],["name/181",[50,37.842]],["parent/181",[62,2.435]],["name/182",[51,40.355]],["parent/182",[62,2.435]],["name/183",[52,40.355]],["parent/183",[62,2.435]],["name/184",[53,40.355]],["parent/184",[62,2.435]],["name/185",[13,32.734]],["parent/185",[62,2.435]],["name/186",[55,40.355]],["parent/186",[62,2.435]],["name/187",[57,40.355]],["parent/187",[62,2.435]],["name/188",[58,40.355]],["parent/188",[62,2.435]],["name/189",[59,40.355]],["parent/189",[62,2.435]],["name/190",[60,40.355]],["parent/190",[62,2.435]],["name/191",[63,48.828]],["parent/191",[]],["name/192",[49,35.835]],["parent/192",[]],["name/193",[64,37.842]],["parent/193",[]],["name/194",[48,37.842]],["parent/194",[64,3.617]],["name/195",[50,37.842]],["parent/195",[64,3.617]],["name/196",[49,35.835]],["parent/196",[64,3.617]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"3":{},"8":{}},"parent":{}}],["abstractworker",{"_index":47,"name":{"145":{}},"parent":{"146":{},"147":{},"148":{},"149":{},"150":{},"151":{},"152":{},"153":{},"154":{},"155":{},"156":{},"157":{},"158":{},"159":{},"160":{}}}],["afterworkersetup",{"_index":20,"name":{"25":{},"53":{},"94":{},"122":{}},"parent":{}}],["async",{"_index":50,"name":{"149":{},"167":{},"181":{},"195":{}},"parent":{}}],["checkalive",{"_index":57,"name":{"157":{},"173":{},"187":{}},"parent":{}}],["checkfunctioninput",{"_index":54,"name":{"154":{}},"parent":{}}],["chooseworker",{"_index":35,"name":{"40":{},"69":{},"111":{},"140":{}},"parent":{}}],["clusterpooloptions",{"_index":40,"name":{"73":{}},"parent":{"74":{},"75":{},"76":{},"77":{},"78":{}}}],["clusterworker",{"_index":61,"name":{"161":{}},"parent":{"162":{},"163":{},"164":{},"165":{},"166":{},"167":{},"168":{},"169":{},"170":{},"171":{},"172":{},"173":{},"174":{},"175":{}}}],["constructor",{"_index":10,"name":{"15":{},"45":{},"86":{},"116":{},"146":{},"162":{},"177":{}},"parent":{}}],["createandsetupworker",{"_index":37,"name":{"42":{},"71":{},"113":{},"142":{}},"parent":{}}],["createworker",{"_index":19,"name":{"24":{},"52":{},"93":{},"121":{}},"parent":{}}],["decreaseworkerstasks",{"_index":33,"name":{"38":{},"67":{},"109":{},"138":{}},"parent":{}}],["destroy",{"_index":31,"name":{"36":{},"65":{},"81":{},"106":{},"135":{}},"parent":{}}],["destroyworker",{"_index":16,"name":{"21":{},"49":{},"90":{},"118":{}},"parent":{}}],["dynamic",{"_index":12,"name":{"17":{},"62":{},"88":{},"132":{}},"parent":{}}],["dynamicclusterpool",{"_index":9,"name":{"14":{}},"parent":{"15":{},"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{}}}],["dynamicthreadpool",{"_index":44,"name":{"85":{}},"parent":{"86":{},"87":{},"88":{},"89":{},"90":{},"91":{},"92":{},"93":{},"94":{},"95":{},"96":{},"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{},"105":{},"106":{},"107":{},"108":{},"109":{},"110":{},"111":{},"112":{},"113":{},"114":{}}}],["emitter",{"_index":23,"name":{"28":{},"56":{},"97":{},"125":{}},"parent":{}}],["env",{"_index":41,"name":{"74":{}},"parent":{}}],["errorhandler",{"_index":0,"name":{"0":{},"10":{},"75":{}},"parent":{"1":{}}}],["execute",{"_index":30,"name":{"35":{},"64":{},"80":{},"105":{},"134":{}},"parent":{}}],["exithandler",{"_index":2,"name":{"2":{},"12":{},"77":{}},"parent":{"3":{}}}],["filepath",{"_index":28,"name":{"33":{},"61":{},"102":{},"130":{}},"parent":{}}],["fixedclusterpool",{"_index":39,"name":{"44":{}},"parent":{"45":{},"46":{},"47":{},"48":{},"49":{},"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{}}}],["fixedthreadpool",{"_index":45,"name":{"115":{}},"parent":{"116":{},"117":{},"118":{},"119":{},"120":{},"121":{},"122":{},"123":{},"124":{},"125":{},"126":{},"127":{},"128":{},"129":{},"130":{},"131":{},"132":{},"133":{},"134":{},"135":{},"136":{},"137":{},"138":{},"139":{},"140":{},"141":{},"142":{},"143":{}}}],["getmainworker",{"_index":55,"name":{"155":{},"172":{},"186":{}},"parent":{}}],["handleerror",{"_index":58,"name":{"158":{},"164":{},"188":{}},"parent":{}}],["increaseworkerstask",{"_index":32,"name":{"37":{},"66":{},"108":{},"137":{}},"parent":{}}],["internalexecute",{"_index":36,"name":{"41":{},"70":{},"112":{},"141":{}},"parent":{}}],["interval",{"_index":52,"name":{"151":{},"169":{},"183":{}},"parent":{}}],["ipool",{"_index":42,"name":{"79":{}},"parent":{"80":{},"81":{},"82":{}}}],["ismain",{"_index":15,"name":{"20":{},"48":{},"89":{},"117":{}},"parent":{}}],["iworker",{"_index":3,"name":{"4":{}},"parent":{"5":{},"6":{}}}],["killbehavior",{"_index":49,"name":{"148":{},"166":{},"180":{},"192":{},"196":{}},"parent":{}}],["killbehaviors",{"_index":63,"name":{"191":{}},"parent":{}}],["lasttask",{"_index":51,"name":{"150":{},"168":{},"182":{}},"parent":{}}],["mainworker",{"_index":53,"name":{"152":{},"170":{},"184":{}},"parent":{}}],["max",{"_index":11,"name":{"16":{},"87":{}},"parent":{}}],["maxinactivetime",{"_index":48,"name":{"147":{},"165":{},"179":{},"194":{}},"parent":{}}],["nextmessageid",{"_index":25,"name":{"30":{},"58":{},"99":{},"127":{}},"parent":{}}],["numberofworkers",{"_index":27,"name":{"32":{},"60":{},"101":{},"129":{}},"parent":{}}],["on",{"_index":4,"name":{"5":{}},"parent":{}}],["once",{"_index":5,"name":{"6":{}},"parent":{}}],["onlinehandler",{"_index":6,"name":{"7":{},"11":{},"76":{}},"parent":{"8":{}}}],["opts",{"_index":13,"name":{"18":{},"46":{},"103":{},"131":{},"153":{},"171":{},"185":{}},"parent":{}}],["pooloptions",{"_index":7,"name":{"9":{}},"parent":{"10":{},"11":{},"12":{},"13":{}}}],["promisemap",{"_index":24,"name":{"29":{},"57":{},"98":{},"126":{}},"parent":{}}],["registerworkermessagelistener",{"_index":18,"name":{"23":{},"51":{},"92":{},"120":{}},"parent":{}}],["removeworker",{"_index":34,"name":{"39":{},"68":{},"110":{},"139":{}},"parent":{}}],["run",{"_index":59,"name":{"159":{},"174":{},"189":{}},"parent":{}}],["runasync",{"_index":60,"name":{"160":{},"175":{},"190":{}},"parent":{}}],["sendtomainworker",{"_index":56,"name":{"156":{},"163":{},"178":{}},"parent":{}}],["sendtoworker",{"_index":17,"name":{"22":{},"50":{},"91":{},"119":{}},"parent":{}}],["setuphook",{"_index":14,"name":{"19":{},"47":{},"107":{},"136":{}},"parent":{}}],["setworkerchoicestrategy",{"_index":29,"name":{"34":{},"63":{},"82":{},"104":{},"133":{}},"parent":{}}],["tasks",{"_index":22,"name":{"27":{},"55":{},"96":{},"124":{}},"parent":{}}],["threadworker",{"_index":62,"name":{"176":{}},"parent":{"177":{},"178":{},"179":{},"180":{},"181":{},"182":{},"183":{},"184":{},"185":{},"186":{},"187":{},"188":{},"189":{},"190":{}}}],["threadworkerwithmessagechannel",{"_index":46,"name":{"144":{}},"parent":{}}],["workerchoicestrategies",{"_index":43,"name":{"83":{}},"parent":{}}],["workerchoicestrategy",{"_index":8,"name":{"13":{},"78":{},"84":{}},"parent":{}}],["workerchoicestrategycontext",{"_index":26,"name":{"31":{},"59":{},"100":{},"128":{}},"parent":{}}],["workerlistener",{"_index":38,"name":{"43":{},"72":{},"114":{},"143":{}},"parent":{}}],["workeroptions",{"_index":64,"name":{"193":{}},"parent":{"194":{},"195":{},"196":{}}}],["workers",{"_index":21,"name":{"26":{},"54":{},"95":{},"123":{}},"parent":{}}]],"pipeline":[]}}
\ No newline at end of file
+window.searchData = {"kinds":{"32":"Variable","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method","65536":"Type literal","262144":"Accessor","4194304":"Type alias"},"rows":[{"id":0,"kind":4194304,"name":"ErrorHandler","url":"index.html#errorhandler","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":1,"kind":65536,"name":"__type","url":"index.html#errorhandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ErrorHandler"},{"id":2,"kind":4194304,"name":"ExitHandler","url":"index.html#exithandler","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":3,"kind":65536,"name":"__type","url":"index.html#exithandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ExitHandler"},{"id":4,"kind":256,"name":"IWorker","url":"interfaces/iworker.html","classes":"tsd-kind-interface"},{"id":5,"kind":2048,"name":"on","url":"interfaces/iworker.html#on","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IWorker"},{"id":6,"kind":2048,"name":"once","url":"interfaces/iworker.html#once","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IWorker"},{"id":7,"kind":4194304,"name":"OnlineHandler","url":"index.html#onlinehandler","classes":"tsd-kind-type-alias tsd-has-type-parameter"},{"id":8,"kind":65536,"name":"__type","url":"index.html#onlinehandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"OnlineHandler"},{"id":9,"kind":256,"name":"PoolOptions","url":"interfaces/pooloptions.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":10,"kind":1024,"name":"errorHandler","url":"interfaces/pooloptions.html#errorhandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":11,"kind":1024,"name":"onlineHandler","url":"interfaces/pooloptions.html#onlinehandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":12,"kind":1024,"name":"exitHandler","url":"interfaces/pooloptions.html#exithandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":13,"kind":1024,"name":"workerChoiceStrategy","url":"interfaces/pooloptions.html#workerchoicestrategy","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":14,"kind":1024,"name":"enableEvents","url":"interfaces/pooloptions.html#enableevents","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":15,"kind":128,"name":"DynamicClusterPool","url":"classes/dynamicclusterpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":16,"kind":512,"name":"constructor","url":"classes/dynamicclusterpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicClusterPool"},{"id":17,"kind":1024,"name":"max","url":"classes/dynamicclusterpool.html#max","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":18,"kind":262144,"name":"type","url":"classes/dynamicclusterpool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":19,"kind":262144,"name":"busy","url":"classes/dynamicclusterpool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":20,"kind":1024,"name":"opts","url":"classes/dynamicclusterpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":21,"kind":2048,"name":"setupHook","url":"classes/dynamicclusterpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":22,"kind":2048,"name":"isMain","url":"classes/dynamicclusterpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":23,"kind":2048,"name":"destroyWorker","url":"classes/dynamicclusterpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":24,"kind":2048,"name":"sendToWorker","url":"classes/dynamicclusterpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":25,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/dynamicclusterpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicClusterPool"},{"id":26,"kind":2048,"name":"createWorker","url":"classes/dynamicclusterpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":27,"kind":2048,"name":"afterWorkerSetup","url":"classes/dynamicclusterpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":28,"kind":1024,"name":"workers","url":"classes/dynamicclusterpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":29,"kind":1024,"name":"tasks","url":"classes/dynamicclusterpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":30,"kind":1024,"name":"emitter","url":"classes/dynamicclusterpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":31,"kind":1024,"name":"promiseMap","url":"classes/dynamicclusterpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":32,"kind":1024,"name":"nextMessageId","url":"classes/dynamicclusterpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":33,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/dynamicclusterpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":34,"kind":1024,"name":"numberOfWorkers","url":"classes/dynamicclusterpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":35,"kind":1024,"name":"filePath","url":"classes/dynamicclusterpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":36,"kind":262144,"name":"numberOfRunningTasks","url":"classes/dynamicclusterpool.html#numberofrunningtasks","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":37,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/dynamicclusterpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":38,"kind":2048,"name":"internalGetBusyStatus","url":"classes/dynamicclusterpool.html#internalgetbusystatus","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":39,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/dynamicclusterpool.html#findfreetasksmapentry","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":40,"kind":2048,"name":"execute","url":"classes/dynamicclusterpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":41,"kind":2048,"name":"destroy","url":"classes/dynamicclusterpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":42,"kind":2048,"name":"increaseWorkersTask","url":"classes/dynamicclusterpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":43,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/dynamicclusterpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":44,"kind":2048,"name":"removeWorker","url":"classes/dynamicclusterpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":45,"kind":2048,"name":"chooseWorker","url":"classes/dynamicclusterpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":46,"kind":2048,"name":"internalExecute","url":"classes/dynamicclusterpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":47,"kind":2048,"name":"createAndSetupWorker","url":"classes/dynamicclusterpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":48,"kind":2048,"name":"workerListener","url":"classes/dynamicclusterpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicClusterPool"},{"id":49,"kind":128,"name":"FixedClusterPool","url":"classes/fixedclusterpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":50,"kind":512,"name":"constructor","url":"classes/fixedclusterpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedClusterPool"},{"id":51,"kind":1024,"name":"opts","url":"classes/fixedclusterpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":52,"kind":2048,"name":"setupHook","url":"classes/fixedclusterpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":53,"kind":2048,"name":"isMain","url":"classes/fixedclusterpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":54,"kind":2048,"name":"destroyWorker","url":"classes/fixedclusterpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":55,"kind":2048,"name":"sendToWorker","url":"classes/fixedclusterpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":56,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/fixedclusterpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedClusterPool"},{"id":57,"kind":2048,"name":"createWorker","url":"classes/fixedclusterpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":58,"kind":2048,"name":"afterWorkerSetup","url":"classes/fixedclusterpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":59,"kind":262144,"name":"type","url":"classes/fixedclusterpool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":60,"kind":262144,"name":"busy","url":"classes/fixedclusterpool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":61,"kind":1024,"name":"workers","url":"classes/fixedclusterpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":62,"kind":1024,"name":"tasks","url":"classes/fixedclusterpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":63,"kind":1024,"name":"emitter","url":"classes/fixedclusterpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":64,"kind":1024,"name":"max","url":"classes/fixedclusterpool.html#max","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":65,"kind":1024,"name":"promiseMap","url":"classes/fixedclusterpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":66,"kind":1024,"name":"nextMessageId","url":"classes/fixedclusterpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":67,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/fixedclusterpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":68,"kind":1024,"name":"numberOfWorkers","url":"classes/fixedclusterpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":69,"kind":1024,"name":"filePath","url":"classes/fixedclusterpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":70,"kind":262144,"name":"numberOfRunningTasks","url":"classes/fixedclusterpool.html#numberofrunningtasks","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":71,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/fixedclusterpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":72,"kind":2048,"name":"internalGetBusyStatus","url":"classes/fixedclusterpool.html#internalgetbusystatus","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":73,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/fixedclusterpool.html#findfreetasksmapentry","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":74,"kind":2048,"name":"execute","url":"classes/fixedclusterpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":75,"kind":2048,"name":"destroy","url":"classes/fixedclusterpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedClusterPool"},{"id":76,"kind":2048,"name":"increaseWorkersTask","url":"classes/fixedclusterpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":77,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/fixedclusterpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":78,"kind":2048,"name":"removeWorker","url":"classes/fixedclusterpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":79,"kind":2048,"name":"chooseWorker","url":"classes/fixedclusterpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":80,"kind":2048,"name":"internalExecute","url":"classes/fixedclusterpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":81,"kind":2048,"name":"createAndSetupWorker","url":"classes/fixedclusterpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":82,"kind":2048,"name":"workerListener","url":"classes/fixedclusterpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedClusterPool"},{"id":83,"kind":256,"name":"ClusterPoolOptions","url":"interfaces/clusterpooloptions.html","classes":"tsd-kind-interface"},{"id":84,"kind":1024,"name":"env","url":"interfaces/clusterpooloptions.html#env","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClusterPoolOptions"},{"id":85,"kind":1024,"name":"errorHandler","url":"interfaces/clusterpooloptions.html#errorhandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":86,"kind":1024,"name":"onlineHandler","url":"interfaces/clusterpooloptions.html#onlinehandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":87,"kind":1024,"name":"exitHandler","url":"interfaces/clusterpooloptions.html#exithandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":88,"kind":1024,"name":"workerChoiceStrategy","url":"interfaces/clusterpooloptions.html#workerchoicestrategy","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":89,"kind":1024,"name":"enableEvents","url":"interfaces/clusterpooloptions.html#enableevents","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":90,"kind":256,"name":"IPool","url":"interfaces/ipool.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":91,"kind":2048,"name":"execute","url":"interfaces/ipool.html#execute","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":92,"kind":2048,"name":"destroy","url":"interfaces/ipool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":93,"kind":2048,"name":"setWorkerChoiceStrategy","url":"interfaces/ipool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":94,"kind":32,"name":"WorkerChoiceStrategies","url":"index.html#workerchoicestrategies","classes":"tsd-kind-variable"},{"id":95,"kind":4194304,"name":"WorkerChoiceStrategy","url":"index.html#workerchoicestrategy","classes":"tsd-kind-type-alias"},{"id":96,"kind":128,"name":"DynamicThreadPool","url":"classes/dynamicthreadpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":97,"kind":512,"name":"constructor","url":"classes/dynamicthreadpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicThreadPool"},{"id":98,"kind":1024,"name":"max","url":"classes/dynamicthreadpool.html#max","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":99,"kind":262144,"name":"type","url":"classes/dynamicthreadpool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":100,"kind":262144,"name":"busy","url":"classes/dynamicthreadpool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":101,"kind":2048,"name":"isMain","url":"classes/dynamicthreadpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":102,"kind":2048,"name":"destroyWorker","url":"classes/dynamicthreadpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":103,"kind":2048,"name":"sendToWorker","url":"classes/dynamicthreadpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":104,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/dynamicthreadpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"DynamicThreadPool"},{"id":105,"kind":2048,"name":"createWorker","url":"classes/dynamicthreadpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":106,"kind":2048,"name":"afterWorkerSetup","url":"classes/dynamicthreadpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":107,"kind":1024,"name":"workers","url":"classes/dynamicthreadpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":108,"kind":1024,"name":"tasks","url":"classes/dynamicthreadpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":109,"kind":1024,"name":"emitter","url":"classes/dynamicthreadpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":110,"kind":1024,"name":"promiseMap","url":"classes/dynamicthreadpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":111,"kind":1024,"name":"nextMessageId","url":"classes/dynamicthreadpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":112,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/dynamicthreadpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":113,"kind":1024,"name":"numberOfWorkers","url":"classes/dynamicthreadpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":114,"kind":1024,"name":"filePath","url":"classes/dynamicthreadpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":115,"kind":1024,"name":"opts","url":"classes/dynamicthreadpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":116,"kind":262144,"name":"numberOfRunningTasks","url":"classes/dynamicthreadpool.html#numberofrunningtasks","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":117,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/dynamicthreadpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":118,"kind":2048,"name":"internalGetBusyStatus","url":"classes/dynamicthreadpool.html#internalgetbusystatus","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":119,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/dynamicthreadpool.html#findfreetasksmapentry","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":120,"kind":2048,"name":"execute","url":"classes/dynamicthreadpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":121,"kind":2048,"name":"destroy","url":"classes/dynamicthreadpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":122,"kind":2048,"name":"setupHook","url":"classes/dynamicthreadpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":123,"kind":2048,"name":"increaseWorkersTask","url":"classes/dynamicthreadpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":124,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/dynamicthreadpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":125,"kind":2048,"name":"removeWorker","url":"classes/dynamicthreadpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":126,"kind":2048,"name":"chooseWorker","url":"classes/dynamicthreadpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":127,"kind":2048,"name":"internalExecute","url":"classes/dynamicthreadpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":128,"kind":2048,"name":"createAndSetupWorker","url":"classes/dynamicthreadpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":129,"kind":2048,"name":"workerListener","url":"classes/dynamicthreadpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"DynamicThreadPool"},{"id":130,"kind":128,"name":"FixedThreadPool","url":"classes/fixedthreadpool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":131,"kind":512,"name":"constructor","url":"classes/fixedthreadpool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedThreadPool"},{"id":132,"kind":2048,"name":"isMain","url":"classes/fixedthreadpool.html#ismain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":133,"kind":2048,"name":"destroyWorker","url":"classes/fixedthreadpool.html#destroyworker","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":134,"kind":2048,"name":"sendToWorker","url":"classes/fixedthreadpool.html#sendtoworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":135,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/fixedthreadpool.html#registerworkermessagelistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter","parent":"FixedThreadPool"},{"id":136,"kind":2048,"name":"createWorker","url":"classes/fixedthreadpool.html#createworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":137,"kind":2048,"name":"afterWorkerSetup","url":"classes/fixedthreadpool.html#afterworkersetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":138,"kind":262144,"name":"type","url":"classes/fixedthreadpool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":139,"kind":262144,"name":"busy","url":"classes/fixedthreadpool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":140,"kind":1024,"name":"workers","url":"classes/fixedthreadpool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":141,"kind":1024,"name":"tasks","url":"classes/fixedthreadpool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":142,"kind":1024,"name":"emitter","url":"classes/fixedthreadpool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":143,"kind":1024,"name":"max","url":"classes/fixedthreadpool.html#max","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":144,"kind":1024,"name":"promiseMap","url":"classes/fixedthreadpool.html#promisemap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":145,"kind":1024,"name":"nextMessageId","url":"classes/fixedthreadpool.html#nextmessageid","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":146,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/fixedthreadpool.html#workerchoicestrategycontext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":147,"kind":1024,"name":"numberOfWorkers","url":"classes/fixedthreadpool.html#numberofworkers","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":148,"kind":1024,"name":"filePath","url":"classes/fixedthreadpool.html#filepath","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":149,"kind":1024,"name":"opts","url":"classes/fixedthreadpool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":150,"kind":262144,"name":"numberOfRunningTasks","url":"classes/fixedthreadpool.html#numberofrunningtasks","classes":"tsd-kind-get-signature tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":151,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/fixedthreadpool.html#setworkerchoicestrategy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":152,"kind":2048,"name":"internalGetBusyStatus","url":"classes/fixedthreadpool.html#internalgetbusystatus","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":153,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/fixedthreadpool.html#findfreetasksmapentry","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":154,"kind":2048,"name":"execute","url":"classes/fixedthreadpool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":155,"kind":2048,"name":"destroy","url":"classes/fixedthreadpool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class","parent":"FixedThreadPool"},{"id":156,"kind":2048,"name":"setupHook","url":"classes/fixedthreadpool.html#setuphook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":157,"kind":2048,"name":"increaseWorkersTask","url":"classes/fixedthreadpool.html#increaseworkerstask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":158,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/fixedthreadpool.html#decreaseworkerstasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":159,"kind":2048,"name":"removeWorker","url":"classes/fixedthreadpool.html#removeworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":160,"kind":2048,"name":"chooseWorker","url":"classes/fixedthreadpool.html#chooseworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":161,"kind":2048,"name":"internalExecute","url":"classes/fixedthreadpool.html#internalexecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":162,"kind":2048,"name":"createAndSetupWorker","url":"classes/fixedthreadpool.html#createandsetupworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":163,"kind":2048,"name":"workerListener","url":"classes/fixedthreadpool.html#workerlistener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"FixedThreadPool"},{"id":164,"kind":4194304,"name":"ThreadWorkerWithMessageChannel","url":"index.html#threadworkerwithmessagechannel","classes":"tsd-kind-type-alias"},{"id":165,"kind":128,"name":"AbstractWorker","url":"classes/abstractworker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":166,"kind":512,"name":"constructor","url":"classes/abstractworker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter","parent":"AbstractWorker"},{"id":167,"kind":1024,"name":"maxInactiveTime","url":"classes/abstractworker.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":168,"kind":1024,"name":"killBehavior","url":"classes/abstractworker.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":169,"kind":1024,"name":"async","url":"classes/abstractworker.html#async","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":170,"kind":1024,"name":"lastTask","url":"classes/abstractworker.html#lasttask","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":171,"kind":1024,"name":"interval","url":"classes/abstractworker.html#interval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":172,"kind":1024,"name":"mainWorker","url":"classes/abstractworker.html#mainworker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":173,"kind":1024,"name":"opts","url":"classes/abstractworker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"AbstractWorker"},{"id":174,"kind":2048,"name":"checkFunctionInput","url":"classes/abstractworker.html#checkfunctioninput","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"AbstractWorker"},{"id":175,"kind":2048,"name":"getMainWorker","url":"classes/abstractworker.html#getmainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":176,"kind":2048,"name":"sendToMainWorker","url":"classes/abstractworker.html#sendtomainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":177,"kind":2048,"name":"checkAlive","url":"classes/abstractworker.html#checkalive","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":178,"kind":2048,"name":"handleError","url":"classes/abstractworker.html#handleerror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":179,"kind":2048,"name":"run","url":"classes/abstractworker.html#run","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":180,"kind":2048,"name":"runAsync","url":"classes/abstractworker.html#runasync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":181,"kind":128,"name":"ClusterWorker","url":"classes/clusterworker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":182,"kind":512,"name":"constructor","url":"classes/clusterworker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ClusterWorker"},{"id":183,"kind":2048,"name":"sendToMainWorker","url":"classes/clusterworker.html#sendtomainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"ClusterWorker"},{"id":184,"kind":2048,"name":"handleError","url":"classes/clusterworker.html#handleerror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"ClusterWorker"},{"id":185,"kind":1024,"name":"maxInactiveTime","url":"classes/clusterworker.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":186,"kind":1024,"name":"killBehavior","url":"classes/clusterworker.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":187,"kind":1024,"name":"async","url":"classes/clusterworker.html#async","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":188,"kind":1024,"name":"lastTask","url":"classes/clusterworker.html#lasttask","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":189,"kind":1024,"name":"interval","url":"classes/clusterworker.html#interval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":190,"kind":1024,"name":"mainWorker","url":"classes/clusterworker.html#mainworker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":191,"kind":1024,"name":"opts","url":"classes/clusterworker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClusterWorker"},{"id":192,"kind":2048,"name":"getMainWorker","url":"classes/clusterworker.html#getmainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":193,"kind":2048,"name":"checkAlive","url":"classes/clusterworker.html#checkalive","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":194,"kind":2048,"name":"run","url":"classes/clusterworker.html#run","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":195,"kind":2048,"name":"runAsync","url":"classes/clusterworker.html#runasync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":196,"kind":128,"name":"ThreadWorker","url":"classes/threadworker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":197,"kind":512,"name":"constructor","url":"classes/threadworker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited","parent":"ThreadWorker"},{"id":198,"kind":2048,"name":"sendToMainWorker","url":"classes/threadworker.html#sendtomainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"ThreadWorker"},{"id":199,"kind":1024,"name":"maxInactiveTime","url":"classes/threadworker.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":200,"kind":1024,"name":"killBehavior","url":"classes/threadworker.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":201,"kind":1024,"name":"async","url":"classes/threadworker.html#async","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":202,"kind":1024,"name":"lastTask","url":"classes/threadworker.html#lasttask","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":203,"kind":1024,"name":"interval","url":"classes/threadworker.html#interval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":204,"kind":1024,"name":"mainWorker","url":"classes/threadworker.html#mainworker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":205,"kind":1024,"name":"opts","url":"classes/threadworker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ThreadWorker"},{"id":206,"kind":2048,"name":"getMainWorker","url":"classes/threadworker.html#getmainworker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":207,"kind":2048,"name":"checkAlive","url":"classes/threadworker.html#checkalive","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":208,"kind":2048,"name":"handleError","url":"classes/threadworker.html#handleerror","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":209,"kind":2048,"name":"run","url":"classes/threadworker.html#run","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":210,"kind":2048,"name":"runAsync","url":"classes/threadworker.html#runasync","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":211,"kind":32,"name":"KillBehaviors","url":"index.html#killbehaviors","classes":"tsd-kind-variable"},{"id":212,"kind":4194304,"name":"KillBehavior","url":"index.html#killbehavior","classes":"tsd-kind-type-alias"},{"id":213,"kind":256,"name":"WorkerOptions","url":"interfaces/workeroptions.html","classes":"tsd-kind-interface"},{"id":214,"kind":1024,"name":"maxInactiveTime","url":"interfaces/workeroptions.html#maxinactivetime","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"},{"id":215,"kind":1024,"name":"async","url":"interfaces/workeroptions.html#async","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"},{"id":216,"kind":1024,"name":"killBehavior","url":"interfaces/workeroptions.html#killbehavior","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,38.804]],["parent/0",[]],["name/1",[1,41.317]],["parent/1",[0,3.726]],["name/2",[2,38.804]],["parent/2",[]],["name/3",[1,41.317]],["parent/3",[2,3.726]],["name/4",[3,41.317]],["parent/4",[]],["name/5",[4,49.79]],["parent/5",[3,3.967]],["name/6",[5,49.79]],["parent/6",[3,3.967]],["name/7",[6,38.804]],["parent/7",[]],["name/8",[1,41.317]],["parent/8",[6,3.726]],["name/9",[7,35.127]],["parent/9",[]],["name/10",[0,38.804]],["parent/10",[7,3.373]],["name/11",[6,38.804]],["parent/11",[7,3.373]],["name/12",[2,38.804]],["parent/12",[7,3.373]],["name/13",[8,41.317]],["parent/13",[7,3.373]],["name/14",[9,44.682]],["parent/14",[7,3.373]],["name/15",[10,18.435]],["parent/15",[]],["name/16",[11,33.696]],["parent/16",[10,1.77]],["name/17",[12,38.804]],["parent/17",[10,1.77]],["name/18",[13,38.804]],["parent/18",[10,1.77]],["name/19",[14,38.804]],["parent/19",[10,1.77]],["name/20",[15,33.696]],["parent/20",[10,1.77]],["name/21",[16,38.804]],["parent/21",[10,1.77]],["name/22",[17,38.804]],["parent/22",[10,1.77]],["name/23",[18,38.804]],["parent/23",[10,1.77]],["name/24",[19,38.804]],["parent/24",[10,1.77]],["name/25",[20,38.804]],["parent/25",[10,1.77]],["name/26",[21,38.804]],["parent/26",[10,1.77]],["name/27",[22,38.804]],["parent/27",[10,1.77]],["name/28",[23,38.804]],["parent/28",[10,1.77]],["name/29",[24,38.804]],["parent/29",[10,1.77]],["name/30",[25,38.804]],["parent/30",[10,1.77]],["name/31",[26,38.804]],["parent/31",[10,1.77]],["name/32",[27,38.804]],["parent/32",[10,1.77]],["name/33",[28,38.804]],["parent/33",[10,1.77]],["name/34",[29,38.804]],["parent/34",[10,1.77]],["name/35",[30,38.804]],["parent/35",[10,1.77]],["name/36",[31,38.804]],["parent/36",[10,1.77]],["name/37",[32,36.797]],["parent/37",[10,1.77]],["name/38",[33,38.804]],["parent/38",[10,1.77]],["name/39",[34,38.804]],["parent/39",[10,1.77]],["name/40",[35,36.797]],["parent/40",[10,1.77]],["name/41",[36,36.797]],["parent/41",[10,1.77]],["name/42",[37,38.804]],["parent/42",[10,1.77]],["name/43",[38,38.804]],["parent/43",[10,1.77]],["name/44",[39,38.804]],["parent/44",[10,1.77]],["name/45",[40,38.804]],["parent/45",[10,1.77]],["name/46",[41,38.804]],["parent/46",[10,1.77]],["name/47",[42,38.804]],["parent/47",[10,1.77]],["name/48",[43,38.804]],["parent/48",[10,1.77]],["name/49",[44,18.435]],["parent/49",[]],["name/50",[11,33.696]],["parent/50",[44,1.77]],["name/51",[15,33.696]],["parent/51",[44,1.77]],["name/52",[16,38.804]],["parent/52",[44,1.77]],["name/53",[17,38.804]],["parent/53",[44,1.77]],["name/54",[18,38.804]],["parent/54",[44,1.77]],["name/55",[19,38.804]],["parent/55",[44,1.77]],["name/56",[20,38.804]],["parent/56",[44,1.77]],["name/57",[21,38.804]],["parent/57",[44,1.77]],["name/58",[22,38.804]],["parent/58",[44,1.77]],["name/59",[13,38.804]],["parent/59",[44,1.77]],["name/60",[14,38.804]],["parent/60",[44,1.77]],["name/61",[23,38.804]],["parent/61",[44,1.77]],["name/62",[24,38.804]],["parent/62",[44,1.77]],["name/63",[25,38.804]],["parent/63",[44,1.77]],["name/64",[12,38.804]],["parent/64",[44,1.77]],["name/65",[26,38.804]],["parent/65",[44,1.77]],["name/66",[27,38.804]],["parent/66",[44,1.77]],["name/67",[28,38.804]],["parent/67",[44,1.77]],["name/68",[29,38.804]],["parent/68",[44,1.77]],["name/69",[30,38.804]],["parent/69",[44,1.77]],["name/70",[31,38.804]],["parent/70",[44,1.77]],["name/71",[32,36.797]],["parent/71",[44,1.77]],["name/72",[33,38.804]],["parent/72",[44,1.77]],["name/73",[34,38.804]],["parent/73",[44,1.77]],["name/74",[35,36.797]],["parent/74",[44,1.77]],["name/75",[36,36.797]],["parent/75",[44,1.77]],["name/76",[37,38.804]],["parent/76",[44,1.77]],["name/77",[38,38.804]],["parent/77",[44,1.77]],["name/78",[39,38.804]],["parent/78",[44,1.77]],["name/79",[40,38.804]],["parent/79",[44,1.77]],["name/80",[41,38.804]],["parent/80",[44,1.77]],["name/81",[42,38.804]],["parent/81",[44,1.77]],["name/82",[43,38.804]],["parent/82",[44,1.77]],["name/83",[45,33.696]],["parent/83",[]],["name/84",[46,49.79]],["parent/84",[45,3.235]],["name/85",[0,38.804]],["parent/85",[45,3.235]],["name/86",[6,38.804]],["parent/86",[45,3.235]],["name/87",[2,38.804]],["parent/87",[45,3.235]],["name/88",[8,41.317]],["parent/88",[45,3.235]],["name/89",[9,44.682]],["parent/89",[45,3.235]],["name/90",[47,38.804]],["parent/90",[]],["name/91",[35,36.797]],["parent/91",[47,3.726]],["name/92",[36,36.797]],["parent/92",[47,3.726]],["name/93",[32,36.797]],["parent/93",[47,3.726]],["name/94",[48,49.79]],["parent/94",[]],["name/95",[8,41.317]],["parent/95",[]],["name/96",[49,18.435]],["parent/96",[]],["name/97",[11,33.696]],["parent/97",[49,1.77]],["name/98",[12,38.804]],["parent/98",[49,1.77]],["name/99",[13,38.804]],["parent/99",[49,1.77]],["name/100",[14,38.804]],["parent/100",[49,1.77]],["name/101",[17,38.804]],["parent/101",[49,1.77]],["name/102",[18,38.804]],["parent/102",[49,1.77]],["name/103",[19,38.804]],["parent/103",[49,1.77]],["name/104",[20,38.804]],["parent/104",[49,1.77]],["name/105",[21,38.804]],["parent/105",[49,1.77]],["name/106",[22,38.804]],["parent/106",[49,1.77]],["name/107",[23,38.804]],["parent/107",[49,1.77]],["name/108",[24,38.804]],["parent/108",[49,1.77]],["name/109",[25,38.804]],["parent/109",[49,1.77]],["name/110",[26,38.804]],["parent/110",[49,1.77]],["name/111",[27,38.804]],["parent/111",[49,1.77]],["name/112",[28,38.804]],["parent/112",[49,1.77]],["name/113",[29,38.804]],["parent/113",[49,1.77]],["name/114",[30,38.804]],["parent/114",[49,1.77]],["name/115",[15,33.696]],["parent/115",[49,1.77]],["name/116",[31,38.804]],["parent/116",[49,1.77]],["name/117",[32,36.797]],["parent/117",[49,1.77]],["name/118",[33,38.804]],["parent/118",[49,1.77]],["name/119",[34,38.804]],["parent/119",[49,1.77]],["name/120",[35,36.797]],["parent/120",[49,1.77]],["name/121",[36,36.797]],["parent/121",[49,1.77]],["name/122",[16,38.804]],["parent/122",[49,1.77]],["name/123",[37,38.804]],["parent/123",[49,1.77]],["name/124",[38,38.804]],["parent/124",[49,1.77]],["name/125",[39,38.804]],["parent/125",[49,1.77]],["name/126",[40,38.804]],["parent/126",[49,1.77]],["name/127",[41,38.804]],["parent/127",[49,1.77]],["name/128",[42,38.804]],["parent/128",[49,1.77]],["name/129",[43,38.804]],["parent/129",[49,1.77]],["name/130",[50,18.435]],["parent/130",[]],["name/131",[11,33.696]],["parent/131",[50,1.77]],["name/132",[17,38.804]],["parent/132",[50,1.77]],["name/133",[18,38.804]],["parent/133",[50,1.77]],["name/134",[19,38.804]],["parent/134",[50,1.77]],["name/135",[20,38.804]],["parent/135",[50,1.77]],["name/136",[21,38.804]],["parent/136",[50,1.77]],["name/137",[22,38.804]],["parent/137",[50,1.77]],["name/138",[13,38.804]],["parent/138",[50,1.77]],["name/139",[14,38.804]],["parent/139",[50,1.77]],["name/140",[23,38.804]],["parent/140",[50,1.77]],["name/141",[24,38.804]],["parent/141",[50,1.77]],["name/142",[25,38.804]],["parent/142",[50,1.77]],["name/143",[12,38.804]],["parent/143",[50,1.77]],["name/144",[26,38.804]],["parent/144",[50,1.77]],["name/145",[27,38.804]],["parent/145",[50,1.77]],["name/146",[28,38.804]],["parent/146",[50,1.77]],["name/147",[29,38.804]],["parent/147",[50,1.77]],["name/148",[30,38.804]],["parent/148",[50,1.77]],["name/149",[15,33.696]],["parent/149",[50,1.77]],["name/150",[31,38.804]],["parent/150",[50,1.77]],["name/151",[32,36.797]],["parent/151",[50,1.77]],["name/152",[33,38.804]],["parent/152",[50,1.77]],["name/153",[34,38.804]],["parent/153",[50,1.77]],["name/154",[35,36.797]],["parent/154",[50,1.77]],["name/155",[36,36.797]],["parent/155",[50,1.77]],["name/156",[16,38.804]],["parent/156",[50,1.77]],["name/157",[37,38.804]],["parent/157",[50,1.77]],["name/158",[38,38.804]],["parent/158",[50,1.77]],["name/159",[39,38.804]],["parent/159",[50,1.77]],["name/160",[40,38.804]],["parent/160",[50,1.77]],["name/161",[41,38.804]],["parent/161",[50,1.77]],["name/162",[42,38.804]],["parent/162",[50,1.77]],["name/163",[43,38.804]],["parent/163",[50,1.77]],["name/164",[51,49.79]],["parent/164",[]],["name/165",[52,25.811]],["parent/165",[]],["name/166",[11,33.696]],["parent/166",[52,2.478]],["name/167",[53,38.804]],["parent/167",[52,2.478]],["name/168",[54,36.797]],["parent/168",[52,2.478]],["name/169",[55,38.804]],["parent/169",[52,2.478]],["name/170",[56,41.317]],["parent/170",[52,2.478]],["name/171",[57,41.317]],["parent/171",[52,2.478]],["name/172",[58,41.317]],["parent/172",[52,2.478]],["name/173",[15,33.696]],["parent/173",[52,2.478]],["name/174",[59,49.79]],["parent/174",[52,2.478]],["name/175",[60,41.317]],["parent/175",[52,2.478]],["name/176",[61,41.317]],["parent/176",[52,2.478]],["name/177",[62,41.317]],["parent/177",[52,2.478]],["name/178",[63,41.317]],["parent/178",[52,2.478]],["name/179",[64,41.317]],["parent/179",[52,2.478]],["name/180",[65,41.317]],["parent/180",[52,2.478]],["name/181",[66,26.437]],["parent/181",[]],["name/182",[11,33.696]],["parent/182",[66,2.538]],["name/183",[61,41.317]],["parent/183",[66,2.538]],["name/184",[63,41.317]],["parent/184",[66,2.538]],["name/185",[53,38.804]],["parent/185",[66,2.538]],["name/186",[54,36.797]],["parent/186",[66,2.538]],["name/187",[55,38.804]],["parent/187",[66,2.538]],["name/188",[56,41.317]],["parent/188",[66,2.538]],["name/189",[57,41.317]],["parent/189",[66,2.538]],["name/190",[58,41.317]],["parent/190",[66,2.538]],["name/191",[15,33.696]],["parent/191",[66,2.538]],["name/192",[60,41.317]],["parent/192",[66,2.538]],["name/193",[62,41.317]],["parent/193",[66,2.538]],["name/194",[64,41.317]],["parent/194",[66,2.538]],["name/195",[65,41.317]],["parent/195",[66,2.538]],["name/196",[67,26.437]],["parent/196",[]],["name/197",[11,33.696]],["parent/197",[67,2.538]],["name/198",[61,41.317]],["parent/198",[67,2.538]],["name/199",[53,38.804]],["parent/199",[67,2.538]],["name/200",[54,36.797]],["parent/200",[67,2.538]],["name/201",[55,38.804]],["parent/201",[67,2.538]],["name/202",[56,41.317]],["parent/202",[67,2.538]],["name/203",[57,41.317]],["parent/203",[67,2.538]],["name/204",[58,41.317]],["parent/204",[67,2.538]],["name/205",[15,33.696]],["parent/205",[67,2.538]],["name/206",[60,41.317]],["parent/206",[67,2.538]],["name/207",[62,41.317]],["parent/207",[67,2.538]],["name/208",[63,41.317]],["parent/208",[67,2.538]],["name/209",[64,41.317]],["parent/209",[67,2.538]],["name/210",[65,41.317]],["parent/210",[67,2.538]],["name/211",[68,49.79]],["parent/211",[]],["name/212",[54,36.797]],["parent/212",[]],["name/213",[69,38.804]],["parent/213",[]],["name/214",[53,38.804]],["parent/214",[69,3.726]],["name/215",[55,38.804]],["parent/215",[69,3.726]],["name/216",[54,36.797]],["parent/216",[69,3.726]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"3":{},"8":{}},"parent":{}}],["abstractworker",{"_index":52,"name":{"165":{}},"parent":{"166":{},"167":{},"168":{},"169":{},"170":{},"171":{},"172":{},"173":{},"174":{},"175":{},"176":{},"177":{},"178":{},"179":{},"180":{}}}],["afterworkersetup",{"_index":22,"name":{"27":{},"58":{},"106":{},"137":{}},"parent":{}}],["async",{"_index":55,"name":{"169":{},"187":{},"201":{},"215":{}},"parent":{}}],["busy",{"_index":14,"name":{"19":{},"60":{},"100":{},"139":{}},"parent":{}}],["checkalive",{"_index":62,"name":{"177":{},"193":{},"207":{}},"parent":{}}],["checkfunctioninput",{"_index":59,"name":{"174":{}},"parent":{}}],["chooseworker",{"_index":40,"name":{"45":{},"79":{},"126":{},"160":{}},"parent":{}}],["clusterpooloptions",{"_index":45,"name":{"83":{}},"parent":{"84":{},"85":{},"86":{},"87":{},"88":{},"89":{}}}],["clusterworker",{"_index":66,"name":{"181":{}},"parent":{"182":{},"183":{},"184":{},"185":{},"186":{},"187":{},"188":{},"189":{},"190":{},"191":{},"192":{},"193":{},"194":{},"195":{}}}],["constructor",{"_index":11,"name":{"16":{},"50":{},"97":{},"131":{},"166":{},"182":{},"197":{}},"parent":{}}],["createandsetupworker",{"_index":42,"name":{"47":{},"81":{},"128":{},"162":{}},"parent":{}}],["createworker",{"_index":21,"name":{"26":{},"57":{},"105":{},"136":{}},"parent":{}}],["decreaseworkerstasks",{"_index":38,"name":{"43":{},"77":{},"124":{},"158":{}},"parent":{}}],["destroy",{"_index":36,"name":{"41":{},"75":{},"92":{},"121":{},"155":{}},"parent":{}}],["destroyworker",{"_index":18,"name":{"23":{},"54":{},"102":{},"133":{}},"parent":{}}],["dynamicclusterpool",{"_index":10,"name":{"15":{}},"parent":{"16":{},"17":{},"18":{},"19":{},"20":{},"21":{},"22":{},"23":{},"24":{},"25":{},"26":{},"27":{},"28":{},"29":{},"30":{},"31":{},"32":{},"33":{},"34":{},"35":{},"36":{},"37":{},"38":{},"39":{},"40":{},"41":{},"42":{},"43":{},"44":{},"45":{},"46":{},"47":{},"48":{}}}],["dynamicthreadpool",{"_index":49,"name":{"96":{}},"parent":{"97":{},"98":{},"99":{},"100":{},"101":{},"102":{},"103":{},"104":{},"105":{},"106":{},"107":{},"108":{},"109":{},"110":{},"111":{},"112":{},"113":{},"114":{},"115":{},"116":{},"117":{},"118":{},"119":{},"120":{},"121":{},"122":{},"123":{},"124":{},"125":{},"126":{},"127":{},"128":{},"129":{}}}],["emitter",{"_index":25,"name":{"30":{},"63":{},"109":{},"142":{}},"parent":{}}],["enableevents",{"_index":9,"name":{"14":{},"89":{}},"parent":{}}],["env",{"_index":46,"name":{"84":{}},"parent":{}}],["errorhandler",{"_index":0,"name":{"0":{},"10":{},"85":{}},"parent":{"1":{}}}],["execute",{"_index":35,"name":{"40":{},"74":{},"91":{},"120":{},"154":{}},"parent":{}}],["exithandler",{"_index":2,"name":{"2":{},"12":{},"87":{}},"parent":{"3":{}}}],["filepath",{"_index":30,"name":{"35":{},"69":{},"114":{},"148":{}},"parent":{}}],["findfreetasksmapentry",{"_index":34,"name":{"39":{},"73":{},"119":{},"153":{}},"parent":{}}],["fixedclusterpool",{"_index":44,"name":{"49":{}},"parent":{"50":{},"51":{},"52":{},"53":{},"54":{},"55":{},"56":{},"57":{},"58":{},"59":{},"60":{},"61":{},"62":{},"63":{},"64":{},"65":{},"66":{},"67":{},"68":{},"69":{},"70":{},"71":{},"72":{},"73":{},"74":{},"75":{},"76":{},"77":{},"78":{},"79":{},"80":{},"81":{},"82":{}}}],["fixedthreadpool",{"_index":50,"name":{"130":{}},"parent":{"131":{},"132":{},"133":{},"134":{},"135":{},"136":{},"137":{},"138":{},"139":{},"140":{},"141":{},"142":{},"143":{},"144":{},"145":{},"146":{},"147":{},"148":{},"149":{},"150":{},"151":{},"152":{},"153":{},"154":{},"155":{},"156":{},"157":{},"158":{},"159":{},"160":{},"161":{},"162":{},"163":{}}}],["getmainworker",{"_index":60,"name":{"175":{},"192":{},"206":{}},"parent":{}}],["handleerror",{"_index":63,"name":{"178":{},"184":{},"208":{}},"parent":{}}],["increaseworkerstask",{"_index":37,"name":{"42":{},"76":{},"123":{},"157":{}},"parent":{}}],["internalexecute",{"_index":41,"name":{"46":{},"80":{},"127":{},"161":{}},"parent":{}}],["internalgetbusystatus",{"_index":33,"name":{"38":{},"72":{},"118":{},"152":{}},"parent":{}}],["interval",{"_index":57,"name":{"171":{},"189":{},"203":{}},"parent":{}}],["ipool",{"_index":47,"name":{"90":{}},"parent":{"91":{},"92":{},"93":{}}}],["ismain",{"_index":17,"name":{"22":{},"53":{},"101":{},"132":{}},"parent":{}}],["iworker",{"_index":3,"name":{"4":{}},"parent":{"5":{},"6":{}}}],["killbehavior",{"_index":54,"name":{"168":{},"186":{},"200":{},"212":{},"216":{}},"parent":{}}],["killbehaviors",{"_index":68,"name":{"211":{}},"parent":{}}],["lasttask",{"_index":56,"name":{"170":{},"188":{},"202":{}},"parent":{}}],["mainworker",{"_index":58,"name":{"172":{},"190":{},"204":{}},"parent":{}}],["max",{"_index":12,"name":{"17":{},"64":{},"98":{},"143":{}},"parent":{}}],["maxinactivetime",{"_index":53,"name":{"167":{},"185":{},"199":{},"214":{}},"parent":{}}],["nextmessageid",{"_index":27,"name":{"32":{},"66":{},"111":{},"145":{}},"parent":{}}],["numberofrunningtasks",{"_index":31,"name":{"36":{},"70":{},"116":{},"150":{}},"parent":{}}],["numberofworkers",{"_index":29,"name":{"34":{},"68":{},"113":{},"147":{}},"parent":{}}],["on",{"_index":4,"name":{"5":{}},"parent":{}}],["once",{"_index":5,"name":{"6":{}},"parent":{}}],["onlinehandler",{"_index":6,"name":{"7":{},"11":{},"86":{}},"parent":{"8":{}}}],["opts",{"_index":15,"name":{"20":{},"51":{},"115":{},"149":{},"173":{},"191":{},"205":{}},"parent":{}}],["pooloptions",{"_index":7,"name":{"9":{}},"parent":{"10":{},"11":{},"12":{},"13":{},"14":{}}}],["promisemap",{"_index":26,"name":{"31":{},"65":{},"110":{},"144":{}},"parent":{}}],["registerworkermessagelistener",{"_index":20,"name":{"25":{},"56":{},"104":{},"135":{}},"parent":{}}],["removeworker",{"_index":39,"name":{"44":{},"78":{},"125":{},"159":{}},"parent":{}}],["run",{"_index":64,"name":{"179":{},"194":{},"209":{}},"parent":{}}],["runasync",{"_index":65,"name":{"180":{},"195":{},"210":{}},"parent":{}}],["sendtomainworker",{"_index":61,"name":{"176":{},"183":{},"198":{}},"parent":{}}],["sendtoworker",{"_index":19,"name":{"24":{},"55":{},"103":{},"134":{}},"parent":{}}],["setuphook",{"_index":16,"name":{"21":{},"52":{},"122":{},"156":{}},"parent":{}}],["setworkerchoicestrategy",{"_index":32,"name":{"37":{},"71":{},"93":{},"117":{},"151":{}},"parent":{}}],["tasks",{"_index":24,"name":{"29":{},"62":{},"108":{},"141":{}},"parent":{}}],["threadworker",{"_index":67,"name":{"196":{}},"parent":{"197":{},"198":{},"199":{},"200":{},"201":{},"202":{},"203":{},"204":{},"205":{},"206":{},"207":{},"208":{},"209":{},"210":{}}}],["threadworkerwithmessagechannel",{"_index":51,"name":{"164":{}},"parent":{}}],["type",{"_index":13,"name":{"18":{},"59":{},"99":{},"138":{}},"parent":{}}],["workerchoicestrategies",{"_index":48,"name":{"94":{}},"parent":{}}],["workerchoicestrategy",{"_index":8,"name":{"13":{},"88":{},"95":{}},"parent":{}}],["workerchoicestrategycontext",{"_index":28,"name":{"33":{},"67":{},"112":{},"146":{}},"parent":{}}],["workerlistener",{"_index":43,"name":{"48":{},"82":{},"129":{},"163":{}},"parent":{}}],["workeroptions",{"_index":69,"name":{"213":{}},"parent":{"214":{},"215":{},"216":{}}}],["workers",{"_index":23,"name":{"28":{},"61":{},"107":{},"140":{}},"parent":{}}]],"pipeline":[]}}
\ No newline at end of file
index b3abfb8ba68eb8af5b42572a78dc4962d7443ed7..bc99b16ea7705ae246b6bfeb42351dae3a732c5a 100644 (file)
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">async<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L34">src/worker/abstract-worker.ts:34</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L34">src/worker/abstract-worker.ts:34</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">interval<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Timeout</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">kill<wbr>Behavior<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;SOFT&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;HARD&quot;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L30">src/worker/abstract-worker.ts:30</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L30">src/worker/abstract-worker.ts:30</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">last<wbr>Task<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L38">src/worker/abstract-worker.ts:38</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L38">src/worker/abstract-worker.ts:38</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">max<wbr>Inactive<wbr>Time<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L26">src/worker/abstract-worker.ts:26</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L26">src/worker/abstract-worker.ts:26</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L130">src/worker/abstract-worker.ts:130</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L130">src/worker/abstract-worker.ts:130</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L104">src/worker/abstract-worker.ts:104</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L104">src/worker/abstract-worker.ts:104</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L113">src/worker/abstract-worker.ts:113</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L113">src/worker/abstract-worker.ts:113</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L142">src/worker/abstract-worker.ts:142</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L142">src/worker/abstract-worker.ts:142</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L152">src/worker/abstract-worker.ts:152</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L152">src/worker/abstract-worker.ts:152</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L173">src/worker/abstract-worker.ts:173</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L173">src/worker/abstract-worker.ts:173</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L125">src/worker/abstract-worker.ts:125</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L125">src/worker/abstract-worker.ts:125</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
index ecb320ad98bae51b2b49dc768c9d29a02c457a8e..c70fa06a474b441cf5516ecb3bb5491345ca4370 100644 (file)
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#constructor">constructor</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/cluster-worker.ts#L25">src/worker/cluster-worker.ts:25</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/cluster-worker.ts#L25">src/worker/cluster-worker.ts:25</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#async">async</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L34">src/worker/abstract-worker.ts:34</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L34">src/worker/abstract-worker.ts:34</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#interval">interval</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#killbehavior">killBehavior</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L30">src/worker/abstract-worker.ts:30</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L30">src/worker/abstract-worker.ts:30</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#lasttask">lastTask</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L38">src/worker/abstract-worker.ts:38</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L38">src/worker/abstract-worker.ts:38</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#maxinactivetime">maxInactiveTime</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L26">src/worker/abstract-worker.ts:26</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L26">src/worker/abstract-worker.ts:26</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#checkalive">checkAlive</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L130">src/worker/abstract-worker.ts:130</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L130">src/worker/abstract-worker.ts:130</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#getmainworker">getMainWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L113">src/worker/abstract-worker.ts:113</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L113">src/worker/abstract-worker.ts:113</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Overrides <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#handleerror">handleError</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/cluster-worker.ts#L40">src/worker/cluster-worker.ts:40</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/cluster-worker.ts#L40">src/worker/cluster-worker.ts:40</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#run">run</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L152">src/worker/abstract-worker.ts:152</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L152">src/worker/abstract-worker.ts:152</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#runasync">runAsync</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L173">src/worker/abstract-worker.ts:173</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L173">src/worker/abstract-worker.ts:173</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Overrides <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#sendtomainworker">sendToMainWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/cluster-worker.ts#L36">src/worker/cluster-worker.ts:36</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/cluster-worker.ts#L36">src/worker/cluster-worker.ts:36</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
index 9882ff61d696d99c2c1502e5ad3de2724d716186..b3d21778aa8c9415c46a8386111a73ba9624e898 100644 (file)
                                                        <ul class="tsd-index-list">
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#emitter" class="tsd-kind-icon">emitter</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a></li>
-                                                               <li class="tsd-kind-property tsd-parent-kind-class"><a href="dynamicclusterpool.html#max" class="tsd-kind-icon">max</a></li>
+                                                               <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#max" class="tsd-kind-icon">max</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicclusterpool.html#nextmessageid" class="tsd-kind-icon">next<wbr>Message<wbr>Id</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#numberofworkers" class="tsd-kind-icon">number<wbr>OfWorkers</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#opts" class="tsd-kind-icon">opts</a></li>
                                                <section class="tsd-index-section ">
                                                        <h3>Accessors</h3>
                                                        <ul class="tsd-index-list">
-                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#dynamic" class="tsd-kind-icon">dynamic</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#busy" class="tsd-kind-icon">busy</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#type" class="tsd-kind-icon">type</a></li>
                                                        </ul>
                                                </section>
                                                <section class="tsd-index-section ">
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#destroy" class="tsd-kind-icon">destroy</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#destroyworker" class="tsd-kind-icon">destroy<wbr>Worker</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#execute" class="tsd-kind-icon">execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicclusterpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicclusterpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicclusterpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicclusterpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicclusterpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="dynamicclusterpool.html#registerworkermessagelistener" class="tsd-kind-icon">register<wbr>Worker<wbr>Message<wbr>Listener</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicclusterpool.html#removeworker" class="tsd-kind-icon">remove<wbr>Worker</a></li>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#constructor">constructor</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/dynamic.ts#L19">src/pools/cluster/dynamic.ts:19</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/dynamic.ts#L20">src/pools/cluster/dynamic.ts:20</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                <h2>Properties</h2>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                        <a name="emitter" class="tsd-anchor"></a>
-                                       <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
-                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PoolEmitter</span></div>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
+                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">PoolEmitter</span></div>
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#emitter">emitter</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L117">src/pools/abstract-pool.ts:117</a></li>
                                                </ul>
                                        </aside>
                                </section>
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#filepath">filePath</a></p>
                                        </aside>
                                </section>
-                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
+                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                        <a name="max" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> max</h3>
                                        <div class="tsd-signature tsd-kind-icon">max<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                                        <aside class="tsd-sources">
+                                               <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#max">max</a></p>
                                        </aside>
                                </section>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#nextmessageid">nextMessageId</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L129">src/pools/abstract-pool.ts:129</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L138">src/pools/abstract-pool.ts:138</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#promisemap">promiseMap</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L121">src/pools/abstract-pool.ts:121</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L130">src/pools/abstract-pool.ts:130</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#tasks">tasks</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L108">src/pools/abstract-pool.ts:108</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L114">src/pools/abstract-pool.ts:114</a></li>
                                                </ul>
                                        </aside>
                                </section>
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#workerchoicestrategycontext">workerChoiceStrategyContext</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L136">src/pools/abstract-pool.ts:136</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L145">src/pools/abstract-pool.ts:145</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#workers">workers</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L105">src/pools/abstract-pool.ts:105</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
                                                </ul>
                                        </aside>
                                </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Accessors</h2>
                                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
-                                       <a name="dynamic" class="tsd-anchor"></a>
-                                       <h3>dynamic</h3>
+                                       <a name="busy" class="tsd-anchor"></a>
+                                       <h3>busy</h3>
                                        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
-                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> dynamic<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> busy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
                                        </ul>
                                        <ul class="tsd-descriptions">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/dynamic.ts#L38">src/pools/cluster/dynamic.ts:38</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/dynamic.ts#L44">src/pools/cluster/dynamic.ts:44</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                       <a name="numberofrunningtasks" class="tsd-anchor"></a>
+                                       <h3>number<wbr>OfRunning<wbr>Tasks</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> numberOfRunningTasks<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L231">src/pools/abstract-pool.ts:231</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                       <a name="type" class="tsd-anchor"></a>
+                                       <h3>type</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PoolType</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/dynamic.ts#L39">src/pools/cluster/dynamic.ts:39</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PoolType</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                        </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Methods</h2>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#afterworkersetup">afterWorkerSetup</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L83">src/pools/cluster/fixed.ts:83</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L84">src/pools/cluster/fixed.ts:84</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#chooseworker">chooseWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L313">src/pools/abstract-pool.ts:313</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L355">src/pools/abstract-pool.ts:355</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#createandsetupworker">createAndSetupWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L366">src/pools/abstract-pool.ts:366</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L408">src/pools/abstract-pool.ts:408</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#createworker">createWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L79">src/pools/cluster/fixed.ts:79</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L80">src/pools/cluster/fixed.ts:80</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Worker</span></h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#decreaseworkerstasks">decreaseWorkersTasks</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L275">src/pools/abstract-pool.ts:275</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L317">src/pools/abstract-pool.ts:317</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Decrease the number of tasks that the given workers has done.</p>
+                                                                       <p>Decrease the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#destroy">destroy</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L237">src/pools/abstract-pool.ts:237</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L279">src/pools/abstract-pool.ts:279</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#destroyworker">destroyWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L62">src/pools/cluster/fixed.ts:62</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L63">src/pools/cluster/fixed.ts:63</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#execute">execute</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L226">src/pools/abstract-pool.ts:226</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L267">src/pools/abstract-pool.ts:267</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
+                                       <a name="findfreetasksmapentry" class="tsd-anchor"></a>
+                                       <h3>find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
+                                               <li class="tsd-signature tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#findfreetasksmapentry">findFreeTasksMapEntry</a></p>
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L256">src/pools/abstract-pool.ts:256</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                        <a name="increaseworkerstask" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> increase<wbr>Workers<wbr>Task</h3>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#increaseworkerstask">increaseWorkersTask</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L266">src/pools/abstract-pool.ts:266</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L308">src/pools/abstract-pool.ts:308</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Increase the number of tasks that the given workers has done.</p>
+                                                                       <p>Increase the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#internalexecute">internalExecute</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L338">src/pools/abstract-pool.ts:338</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L380">src/pools/abstract-pool.ts:380</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
+                                       <a name="internalgetbusystatus" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagProtected">Protected</span> internal<wbr>Get<wbr>Busy<wbr>Status</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
+                                               <li class="tsd-signature tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#internalgetbusystatus">internalGetBusyStatus</a></p>
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L248">src/pools/abstract-pool.ts:248</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                        <a name="ismain" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> is<wbr>Main</h3>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#ismain">isMain</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L57">src/pools/cluster/fixed.ts:57</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L58">src/pools/cluster/fixed.ts:58</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#registerworkermessagelistener">registerWorkerMessageListener</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L72">src/pools/cluster/fixed.ts:72</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L73">src/pools/cluster/fixed.ts:73</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#removeworker">removeWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L299">src/pools/abstract-pool.ts:299</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L341">src/pools/abstract-pool.ts:341</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#sendtoworker">sendToWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L67">src/pools/cluster/fixed.ts:67</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L68">src/pools/cluster/fixed.ts:68</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#setworkerchoicestrategy">setWorkerChoiceStrategy</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L216">src/pools/abstract-pool.ts:216</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L236">src/pools/abstract-pool.ts:236</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#setuphook">setupHook</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L51">src/pools/cluster/fixed.ts:51</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L52">src/pools/cluster/fixed.ts:52</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedclusterpool.html">FixedClusterPool</a>.<a href="fixedclusterpool.html#workerlistener">workerListener</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L389">src/pools/abstract-pool.ts:389</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L431">src/pools/abstract-pool.ts:431</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                                                <a href="dynamicclusterpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a>
                                                        </li>
-                                                       <li class=" tsd-kind-property tsd-parent-kind-class">
+                                                       <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                                                <a href="dynamicclusterpool.html#max" class="tsd-kind-icon">max</a>
                                                        </li>
                                                        <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicclusterpool.html#workers" class="tsd-kind-icon">workers</a>
                                                        </li>
                                                        <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
-                                                               <a href="dynamicclusterpool.html#dynamic" class="tsd-kind-icon">dynamic</a>
+                                                               <a href="dynamicclusterpool.html#busy" class="tsd-kind-icon">busy</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                                               <a href="dynamicclusterpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                                               <a href="dynamicclusterpool.html#type" class="tsd-kind-icon">type</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicclusterpool.html#afterworkersetup" class="tsd-kind-icon">after<wbr>Worker<wbr>Setup</a>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
                                                                <a href="dynamicclusterpool.html#execute" class="tsd-kind-icon">execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
+                                                               <a href="dynamicclusterpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicclusterpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicclusterpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
+                                                               <a href="dynamicclusterpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicclusterpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a>
                                                        </li>
index cd0754d9c5309724864f4e613b67401be2461efd..b81badc4846a8557de86dcf398500001a1a6a116 100644 (file)
                                                        <ul class="tsd-index-list">
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#emitter" class="tsd-kind-icon">emitter</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a></li>
-                                                               <li class="tsd-kind-property tsd-parent-kind-class"><a href="dynamicthreadpool.html#max" class="tsd-kind-icon">max</a></li>
+                                                               <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#max" class="tsd-kind-icon">max</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicthreadpool.html#nextmessageid" class="tsd-kind-icon">next<wbr>Message<wbr>Id</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#numberofworkers" class="tsd-kind-icon">number<wbr>OfWorkers</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#opts" class="tsd-kind-icon">opts</a></li>
                                                <section class="tsd-index-section ">
                                                        <h3>Accessors</h3>
                                                        <ul class="tsd-index-list">
-                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#dynamic" class="tsd-kind-icon">dynamic</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#busy" class="tsd-kind-icon">busy</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#type" class="tsd-kind-icon">type</a></li>
                                                        </ul>
                                                </section>
                                                <section class="tsd-index-section ">
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#destroy" class="tsd-kind-icon">destroy</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#destroyworker" class="tsd-kind-icon">destroy<wbr>Worker</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#execute" class="tsd-kind-icon">execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="dynamicthreadpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicthreadpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicthreadpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicthreadpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicthreadpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-inherited"><a href="dynamicthreadpool.html#registerworkermessagelistener" class="tsd-kind-icon">register<wbr>Worker<wbr>Message<wbr>Listener</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected"><a href="dynamicthreadpool.html#removeworker" class="tsd-kind-icon">remove<wbr>Worker</a></li>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#constructor">constructor</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/dynamic.ts#L20">src/pools/thread/dynamic.ts:20</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/dynamic.ts#L21">src/pools/thread/dynamic.ts:21</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                <h2>Properties</h2>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                        <a name="emitter" class="tsd-anchor"></a>
-                                       <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
-                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PoolEmitter</span></div>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
+                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">PoolEmitter</span></div>
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#emitter">emitter</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L117">src/pools/abstract-pool.ts:117</a></li>
                                                </ul>
                                        </aside>
                                </section>
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#filepath">filePath</a></p>
                                        </aside>
                                </section>
-                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
+                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                        <a name="max" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> max</h3>
                                        <div class="tsd-signature tsd-kind-icon">max<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
                                        <aside class="tsd-sources">
+                                               <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#max">max</a></p>
                                        </aside>
                                </section>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#nextmessageid">nextMessageId</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L129">src/pools/abstract-pool.ts:129</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L138">src/pools/abstract-pool.ts:138</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#promisemap">promiseMap</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L121">src/pools/abstract-pool.ts:121</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L130">src/pools/abstract-pool.ts:130</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#tasks">tasks</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L108">src/pools/abstract-pool.ts:108</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L114">src/pools/abstract-pool.ts:114</a></li>
                                                </ul>
                                        </aside>
                                </section>
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#workerchoicestrategycontext">workerChoiceStrategyContext</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L136">src/pools/abstract-pool.ts:136</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L145">src/pools/abstract-pool.ts:145</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#workers">workers</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L105">src/pools/abstract-pool.ts:105</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
                                                </ul>
                                        </aside>
                                </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Accessors</h2>
                                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
-                                       <a name="dynamic" class="tsd-anchor"></a>
-                                       <h3>dynamic</h3>
+                                       <a name="busy" class="tsd-anchor"></a>
+                                       <h3>busy</h3>
                                        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
-                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> dynamic<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> busy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
                                        </ul>
                                        <ul class="tsd-descriptions">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/dynamic.ts#L39">src/pools/thread/dynamic.ts:39</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/dynamic.ts#L45">src/pools/thread/dynamic.ts:45</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                       <a name="numberofrunningtasks" class="tsd-anchor"></a>
+                                       <h3>number<wbr>OfRunning<wbr>Tasks</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> numberOfRunningTasks<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L231">src/pools/abstract-pool.ts:231</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                       <a name="type" class="tsd-anchor"></a>
+                                       <h3>type</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PoolType</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/dynamic.ts#L40">src/pools/thread/dynamic.ts:40</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PoolType</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                        </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Methods</h2>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#afterworkersetup">afterWorkerSetup</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L76">src/pools/thread/fixed.ts:76</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L77">src/pools/thread/fixed.ts:77</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#chooseworker">chooseWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L313">src/pools/abstract-pool.ts:313</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L355">src/pools/abstract-pool.ts:355</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#createandsetupworker">createAndSetupWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L366">src/pools/abstract-pool.ts:366</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L408">src/pools/abstract-pool.ts:408</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#createworker">createWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L70">src/pools/thread/fixed.ts:70</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L71">src/pools/thread/fixed.ts:71</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a></h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#decreaseworkerstasks">decreaseWorkersTasks</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L275">src/pools/abstract-pool.ts:275</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L317">src/pools/abstract-pool.ts:317</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Decrease the number of tasks that the given workers has done.</p>
+                                                                       <p>Decrease the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#destroy">destroy</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L237">src/pools/abstract-pool.ts:237</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L279">src/pools/abstract-pool.ts:279</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#destroyworker">destroyWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L48">src/pools/thread/fixed.ts:48</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L49">src/pools/thread/fixed.ts:49</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#execute">execute</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L226">src/pools/abstract-pool.ts:226</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L267">src/pools/abstract-pool.ts:267</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
+                                       <a name="findfreetasksmapentry" class="tsd-anchor"></a>
+                                       <h3>find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
+                                               <li class="tsd-signature tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#findfreetasksmapentry">findFreeTasksMapEntry</a></p>
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L256">src/pools/abstract-pool.ts:256</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                        <a name="increaseworkerstask" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> increase<wbr>Workers<wbr>Task</h3>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#increaseworkerstask">increaseWorkersTask</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L266">src/pools/abstract-pool.ts:266</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L308">src/pools/abstract-pool.ts:308</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Increase the number of tasks that the given workers has done.</p>
+                                                                       <p>Increase the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#internalexecute">internalExecute</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L338">src/pools/abstract-pool.ts:338</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L380">src/pools/abstract-pool.ts:380</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
+                                       <a name="internalgetbusystatus" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagProtected">Protected</span> internal<wbr>Get<wbr>Busy<wbr>Status</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
+                                               <li class="tsd-signature tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#internalgetbusystatus">internalGetBusyStatus</a></p>
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L248">src/pools/abstract-pool.ts:248</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                        <a name="ismain" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> is<wbr>Main</h3>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#ismain">isMain</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L43">src/pools/thread/fixed.ts:43</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L44">src/pools/thread/fixed.ts:44</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#registerworkermessagelistener">registerWorkerMessageListener</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L63">src/pools/thread/fixed.ts:63</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L64">src/pools/thread/fixed.ts:64</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#removeworker">removeWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L299">src/pools/abstract-pool.ts:299</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L341">src/pools/abstract-pool.ts:341</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#sendtoworker">sendToWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L55">src/pools/thread/fixed.ts:55</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L56">src/pools/thread/fixed.ts:56</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#setworkerchoicestrategy">setWorkerChoiceStrategy</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L216">src/pools/abstract-pool.ts:216</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L236">src/pools/abstract-pool.ts:236</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#setuphook">setupHook</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L252">src/pools/abstract-pool.ts:252</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L294">src/pools/abstract-pool.ts:294</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="fixedthreadpool.html">FixedThreadPool</a>.<a href="fixedthreadpool.html#workerlistener">workerListener</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L389">src/pools/abstract-pool.ts:389</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L431">src/pools/abstract-pool.ts:431</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                                                <a href="dynamicthreadpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a>
                                                        </li>
-                                                       <li class=" tsd-kind-property tsd-parent-kind-class">
+                                                       <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited">
                                                                <a href="dynamicthreadpool.html#max" class="tsd-kind-icon">max</a>
                                                        </li>
                                                        <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicthreadpool.html#workers" class="tsd-kind-icon">workers</a>
                                                        </li>
                                                        <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
-                                                               <a href="dynamicthreadpool.html#dynamic" class="tsd-kind-icon">dynamic</a>
+                                                               <a href="dynamicthreadpool.html#busy" class="tsd-kind-icon">busy</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                                               <a href="dynamicthreadpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited">
+                                                               <a href="dynamicthreadpool.html#type" class="tsd-kind-icon">type</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicthreadpool.html#afterworkersetup" class="tsd-kind-icon">after<wbr>Worker<wbr>Setup</a>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
                                                                <a href="dynamicthreadpool.html#execute" class="tsd-kind-icon">execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
+                                                               <a href="dynamicthreadpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicthreadpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicthreadpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
+                                                               <a href="dynamicthreadpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected">
                                                                <a href="dynamicthreadpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a>
                                                        </li>
index f224864d23a130b46920289559fb5670a9c171a4..27a6c746c7a71e46ffa7eac3bf3968900f23e72d 100644 (file)
                                                        <ul class="tsd-index-list">
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedclusterpool.html#emitter" class="tsd-kind-icon">emitter</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedclusterpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a></li>
+                                                               <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedclusterpool.html#max" class="tsd-kind-icon">max</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="fixedclusterpool.html#nextmessageid" class="tsd-kind-icon">next<wbr>Message<wbr>Id</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedclusterpool.html#numberofworkers" class="tsd-kind-icon">number<wbr>OfWorkers</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedclusterpool.html#opts" class="tsd-kind-icon">opts</a></li>
                                                <section class="tsd-index-section ">
                                                        <h3>Accessors</h3>
                                                        <ul class="tsd-index-list">
-                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedclusterpool.html#dynamic" class="tsd-kind-icon">dynamic</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedclusterpool.html#busy" class="tsd-kind-icon">busy</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedclusterpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedclusterpool.html#type" class="tsd-kind-icon">type</a></li>
                                                        </ul>
                                                </section>
                                                <section class="tsd-index-section ">
                                                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedclusterpool.html#destroy" class="tsd-kind-icon">destroy</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedclusterpool.html#destroyworker" class="tsd-kind-icon">destroy<wbr>Worker</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedclusterpool.html#execute" class="tsd-kind-icon">execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedclusterpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedclusterpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedclusterpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedclusterpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedclusterpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="fixedclusterpool.html#registerworkermessagelistener" class="tsd-kind-icon">register<wbr>Worker<wbr>Message<wbr>Listener</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedclusterpool.html#removeworker" class="tsd-kind-icon">remove<wbr>Worker</a></li>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L35">src/pools/cluster/fixed.ts:35</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L36">src/pools/cluster/fixed.ts:36</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                <h2>Properties</h2>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                                        <a name="emitter" class="tsd-anchor"></a>
-                                       <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
-                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PoolEmitter</span></div>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
+                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">PoolEmitter</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L117">src/pools/abstract-pool.ts:117</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                        </aside>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
+                                       <a name="max" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> max</h3>
+                                       <div class="tsd-signature tsd-kind-icon">max<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></div>
+                                       <aside class="tsd-sources">
+                                               <ul>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L120">src/pools/abstract-pool.ts:120</a></li>
+                                               </ul>
+                                       </aside>
+                                       <div class="tsd-comment tsd-typography">
+                                               <dl class="tsd-comment-tags">
+                                                       <dt>inheritdoc</dt>
+                                                       <dd></dd>
+                                               </dl>
+                                       </div>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
                                        <a name="nextmessageid" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> next<wbr>Message<wbr>Id</h3>
                                        <div class="tsd-signature tsd-kind-icon">next<wbr>Message<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L129">src/pools/abstract-pool.ts:129</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L138">src/pools/abstract-pool.ts:138</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">promise<wbr>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">PromiseWorkerResponseWrapper</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Response</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L121">src/pools/abstract-pool.ts:121</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L130">src/pools/abstract-pool.ts:130</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">tasks<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L108">src/pools/abstract-pool.ts:108</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L114">src/pools/abstract-pool.ts:114</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">worker<wbr>Choice<wbr>Strategy<wbr>Context<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WorkerChoiceStrategyContext</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Data</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Response</span><span class="tsd-signature-symbol">&gt;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L136">src/pools/abstract-pool.ts:136</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L145">src/pools/abstract-pool.ts:145</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">workers<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L105">src/pools/abstract-pool.ts:105</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Accessors</h2>
                                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
-                                       <a name="dynamic" class="tsd-anchor"></a>
-                                       <h3>dynamic</h3>
+                                       <a name="busy" class="tsd-anchor"></a>
+                                       <h3>busy</h3>
                                        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
-                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> dynamic<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> busy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
                                        </ul>
                                        <ul class="tsd-descriptions">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L211">src/pools/abstract-pool.ts:211</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L95">src/pools/cluster/fixed.ts:95</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
+                                       <a name="numberofrunningtasks" class="tsd-anchor"></a>
+                                       <h3>number<wbr>OfRunning<wbr>Tasks</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> numberOfRunningTasks<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L231">src/pools/abstract-pool.ts:231</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
+                                       <a name="type" class="tsd-anchor"></a>
+                                       <h3>type</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PoolType</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L90">src/pools/cluster/fixed.ts:90</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PoolType</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                        </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Methods</h2>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L83">src/pools/cluster/fixed.ts:83</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L84">src/pools/cluster/fixed.ts:84</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L313">src/pools/abstract-pool.ts:313</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L355">src/pools/abstract-pool.ts:355</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L366">src/pools/abstract-pool.ts:366</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L408">src/pools/abstract-pool.ts:408</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L79">src/pools/cluster/fixed.ts:79</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L80">src/pools/cluster/fixed.ts:80</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Worker</span></h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L275">src/pools/abstract-pool.ts:275</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L317">src/pools/abstract-pool.ts:317</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Decrease the number of tasks that the given workers has done.</p>
+                                                                       <p>Decrease the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L237">src/pools/abstract-pool.ts:237</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L279">src/pools/abstract-pool.ts:279</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L62">src/pools/cluster/fixed.ts:62</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L63">src/pools/cluster/fixed.ts:63</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L226">src/pools/abstract-pool.ts:226</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L267">src/pools/abstract-pool.ts:267</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
+                                       <a name="findfreetasksmapentry" class="tsd-anchor"></a>
+                                       <h3>find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
+                                               <li class="tsd-signature tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L256">src/pools/abstract-pool.ts:256</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                        <a name="increaseworkerstask" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> increase<wbr>Workers<wbr>Task</h3>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L266">src/pools/abstract-pool.ts:266</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L308">src/pools/abstract-pool.ts:308</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Increase the number of tasks that the given workers has done.</p>
+                                                                       <p>Increase the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L338">src/pools/abstract-pool.ts:338</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L380">src/pools/abstract-pool.ts:380</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
+                                       <a name="internalgetbusystatus" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagProtected">Protected</span> internal<wbr>Get<wbr>Busy<wbr>Status</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
+                                               <li class="tsd-signature tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L248">src/pools/abstract-pool.ts:248</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                        <a name="ismain" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> is<wbr>Main</h3>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L57">src/pools/cluster/fixed.ts:57</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L58">src/pools/cluster/fixed.ts:58</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L72">src/pools/cluster/fixed.ts:72</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L73">src/pools/cluster/fixed.ts:73</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L299">src/pools/abstract-pool.ts:299</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L341">src/pools/abstract-pool.ts:341</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L67">src/pools/cluster/fixed.ts:67</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L68">src/pools/cluster/fixed.ts:68</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L216">src/pools/abstract-pool.ts:216</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L236">src/pools/abstract-pool.ts:236</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L51">src/pools/cluster/fixed.ts:51</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L52">src/pools/cluster/fixed.ts:52</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L389">src/pools/abstract-pool.ts:389</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L431">src/pools/abstract-pool.ts:431</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <li class=" tsd-kind-property tsd-parent-kind-class">
                                                                <a href="fixedclusterpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a>
                                                        </li>
+                                                       <li class=" tsd-kind-property tsd-parent-kind-class">
+                                                               <a href="fixedclusterpool.html#max" class="tsd-kind-icon">max</a>
+                                                       </li>
                                                        <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedclusterpool.html#nextmessageid" class="tsd-kind-icon">next<wbr>Message<wbr>Id</a>
                                                        </li>
                                                                <a href="fixedclusterpool.html#workers" class="tsd-kind-icon">workers</a>
                                                        </li>
                                                        <li class=" tsd-kind-get-signature tsd-parent-kind-class">
-                                                               <a href="fixedclusterpool.html#dynamic" class="tsd-kind-icon">dynamic</a>
+                                                               <a href="fixedclusterpool.html#busy" class="tsd-kind-icon">busy</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class">
+                                                               <a href="fixedclusterpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class">
+                                                               <a href="fixedclusterpool.html#type" class="tsd-kind-icon">type</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedclusterpool.html#afterworkersetup" class="tsd-kind-icon">after<wbr>Worker<wbr>Setup</a>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class">
                                                                <a href="fixedclusterpool.html#execute" class="tsd-kind-icon">execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class">
+                                                               <a href="fixedclusterpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedclusterpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedclusterpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
+                                                               <a href="fixedclusterpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedclusterpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a>
                                                        </li>
index 1fa02969ebb2f3a554576ba32210a172c35dc2f8..65c94585e3c1ab1cd4fb641df03fe75219247a55 100644 (file)
                                                        <ul class="tsd-index-list">
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedthreadpool.html#emitter" class="tsd-kind-icon">emitter</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedthreadpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a></li>
+                                                               <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedthreadpool.html#max" class="tsd-kind-icon">max</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><a href="fixedthreadpool.html#nextmessageid" class="tsd-kind-icon">next<wbr>Message<wbr>Id</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedthreadpool.html#numberofworkers" class="tsd-kind-icon">number<wbr>OfWorkers</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-class"><a href="fixedthreadpool.html#opts" class="tsd-kind-icon">opts</a></li>
                                                <section class="tsd-index-section ">
                                                        <h3>Accessors</h3>
                                                        <ul class="tsd-index-list">
-                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedthreadpool.html#dynamic" class="tsd-kind-icon">dynamic</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedthreadpool.html#busy" class="tsd-kind-icon">busy</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedthreadpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a></li>
+                                                               <li class="tsd-kind-get-signature tsd-parent-kind-class"><a href="fixedthreadpool.html#type" class="tsd-kind-icon">type</a></li>
                                                        </ul>
                                                </section>
                                                <section class="tsd-index-section ">
                                                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedthreadpool.html#destroy" class="tsd-kind-icon">destroy</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedthreadpool.html#destroyworker" class="tsd-kind-icon">destroy<wbr>Worker</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedthreadpool.html#execute" class="tsd-kind-icon">execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class"><a href="fixedthreadpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedthreadpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedthreadpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a></li>
+                                                               <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedthreadpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedthreadpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter"><a href="fixedthreadpool.html#registerworkermessagelistener" class="tsd-kind-icon">register<wbr>Worker<wbr>Message<wbr>Listener</a></li>
                                                                <li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><a href="fixedthreadpool.html#removeworker" class="tsd-kind-icon">remove<wbr>Worker</a></li>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L27">src/pools/thread/fixed.ts:27</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L28">src/pools/thread/fixed.ts:28</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                <h2>Properties</h2>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
                                        <a name="emitter" class="tsd-anchor"></a>
-                                       <h3><span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
-                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">PoolEmitter</span></div>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> emitter</h3>
+                                       <div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">PoolEmitter</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L117">src/pools/abstract-pool.ts:117</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                        </aside>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
+                                       <a name="max" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> <span class="tsd-flag ts-flagReadonly">Readonly</span> max</h3>
+                                       <div class="tsd-signature tsd-kind-icon">max<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></div>
+                                       <aside class="tsd-sources">
+                                               <ul>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L120">src/pools/abstract-pool.ts:120</a></li>
+                                               </ul>
+                                       </aside>
+                                       <div class="tsd-comment tsd-typography">
+                                               <dl class="tsd-comment-tags">
+                                                       <dt>inheritdoc</dt>
+                                                       <dd></dd>
+                                               </dl>
+                                       </div>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-protected">
                                        <a name="nextmessageid" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> next<wbr>Message<wbr>Id</h3>
                                        <div class="tsd-signature tsd-kind-icon">next<wbr>Message<wbr>Id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L129">src/pools/abstract-pool.ts:129</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L138">src/pools/abstract-pool.ts:138</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">promise<wbr>Map<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">PromiseWorkerResponseWrapper</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Response</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L121">src/pools/abstract-pool.ts:121</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L130">src/pools/abstract-pool.ts:130</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">tasks<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L108">src/pools/abstract-pool.ts:108</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L114">src/pools/abstract-pool.ts:114</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">worker<wbr>Choice<wbr>Strategy<wbr>Context<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WorkerChoiceStrategyContext</span><span class="tsd-signature-symbol">&lt;</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Data</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">Response</span><span class="tsd-signature-symbol">&gt;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L136">src/pools/abstract-pool.ts:136</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L145">src/pools/abstract-pool.ts:145</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">workers<span class="tsd-signature-symbol">:</span> <a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L105">src/pools/abstract-pool.ts:105</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L111">src/pools/abstract-pool.ts:111</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Accessors</h2>
                                <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
-                                       <a name="dynamic" class="tsd-anchor"></a>
-                                       <h3>dynamic</h3>
+                                       <a name="busy" class="tsd-anchor"></a>
+                                       <h3>busy</h3>
                                        <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
-                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> dynamic<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> busy<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
                                        </ul>
                                        <ul class="tsd-descriptions">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L211">src/pools/abstract-pool.ts:211</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L92">src/pools/thread/fixed.ts:92</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
+                                       <a name="numberofrunningtasks" class="tsd-anchor"></a>
+                                       <h3>number<wbr>OfRunning<wbr>Tasks</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> numberOfRunningTasks<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L231">src/pools/abstract-pool.ts:231</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
+                               <section class="tsd-panel tsd-member tsd-kind-get-signature tsd-parent-kind-class">
+                                       <a name="type" class="tsd-anchor"></a>
+                                       <h3>type</h3>
+                                       <ul class="tsd-signatures tsd-kind-get-signature tsd-parent-kind-class">
+                                               <li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">get</span> type<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">PoolType</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L87">src/pools/thread/fixed.ts:87</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">PoolType</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                        </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Methods</h2>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L76">src/pools/thread/fixed.ts:76</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L77">src/pools/thread/fixed.ts:77</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L313">src/pools/abstract-pool.ts:313</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L355">src/pools/abstract-pool.ts:355</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L366">src/pools/abstract-pool.ts:366</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L408">src/pools/abstract-pool.ts:408</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L70">src/pools/thread/fixed.ts:70</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L71">src/pools/thread/fixed.ts:71</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a></h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L275">src/pools/abstract-pool.ts:275</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L317">src/pools/abstract-pool.ts:317</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Decrease the number of tasks that the given workers has done.</p>
+                                                                       <p>Decrease the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L237">src/pools/abstract-pool.ts:237</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L279">src/pools/abstract-pool.ts:279</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L48">src/pools/thread/fixed.ts:48</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L49">src/pools/thread/fixed.ts:49</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L226">src/pools/abstract-pool.ts:226</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L267">src/pools/abstract-pool.ts:267</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
+                                       <a name="findfreetasksmapentry" class="tsd-anchor"></a>
+                                       <h3>find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
+                                               <li class="tsd-signature tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L256">src/pools/abstract-pool.ts:256</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <div class="tsd-comment tsd-typography">
+                                                               <dl class="tsd-comment-tags">
+                                                                       <dt>inheritdoc</dt>
+                                                                       <dd></dd>
+                                                               </dl>
+                                                       </div>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">false</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-symbol">[</span><a href="../index.html#threadworkerwithmessagechannel" class="tsd-signature-type" data-tsd-kind="Type alias">ThreadWorkerWithMessageChannel</a><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">]</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                        <a name="increaseworkerstask" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> increase<wbr>Workers<wbr>Task</h3>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L266">src/pools/abstract-pool.ts:266</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L308">src/pools/abstract-pool.ts:308</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                                <div class="lead">
-                                                                       <p>Increase the number of tasks that the given workers has done.</p>
+                                                                       <p>Increase the number of tasks that the given workers has applied.</p>
                                                                </div>
                                                        </div>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L338">src/pools/abstract-pool.ts:338</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L380">src/pools/abstract-pool.ts:380</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                </li>
                                        </ul>
                                </section>
+                               <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
+                                       <a name="internalgetbusystatus" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagProtected">Protected</span> internal<wbr>Get<wbr>Busy<wbr>Status</h3>
+                                       <ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-protected">
+                                               <li class="tsd-signature tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
+                                       </ul>
+                                       <ul class="tsd-descriptions">
+                                               <li class="tsd-description">
+                                                       <aside class="tsd-sources">
+                                                               <ul>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L248">src/pools/abstract-pool.ts:248</a></li>
+                                                               </ul>
+                                                       </aside>
+                                                       <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
+                                               </li>
+                                       </ul>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                        <a name="ismain" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagProtected">Protected</span> is<wbr>Main</h3>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L43">src/pools/thread/fixed.ts:43</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L44">src/pools/thread/fixed.ts:44</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L63">src/pools/thread/fixed.ts:63</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L64">src/pools/thread/fixed.ts:64</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L299">src/pools/abstract-pool.ts:299</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L341">src/pools/abstract-pool.ts:341</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L55">src/pools/thread/fixed.ts:55</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L56">src/pools/thread/fixed.ts:56</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L216">src/pools/abstract-pool.ts:216</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L236">src/pools/abstract-pool.ts:236</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L252">src/pools/abstract-pool.ts:252</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L294">src/pools/abstract-pool.ts:294</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L389">src/pools/abstract-pool.ts:389</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L431">src/pools/abstract-pool.ts:431</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <li class=" tsd-kind-property tsd-parent-kind-class">
                                                                <a href="fixedthreadpool.html#filepath" class="tsd-kind-icon">file<wbr>Path</a>
                                                        </li>
+                                                       <li class=" tsd-kind-property tsd-parent-kind-class">
+                                                               <a href="fixedthreadpool.html#max" class="tsd-kind-icon">max</a>
+                                                       </li>
                                                        <li class=" tsd-kind-property tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedthreadpool.html#nextmessageid" class="tsd-kind-icon">next<wbr>Message<wbr>Id</a>
                                                        </li>
                                                                <a href="fixedthreadpool.html#workers" class="tsd-kind-icon">workers</a>
                                                        </li>
                                                        <li class=" tsd-kind-get-signature tsd-parent-kind-class">
-                                                               <a href="fixedthreadpool.html#dynamic" class="tsd-kind-icon">dynamic</a>
+                                                               <a href="fixedthreadpool.html#busy" class="tsd-kind-icon">busy</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class">
+                                                               <a href="fixedthreadpool.html#numberofrunningtasks" class="tsd-kind-icon">number<wbr>OfRunning<wbr>Tasks</a>
+                                                       </li>
+                                                       <li class=" tsd-kind-get-signature tsd-parent-kind-class">
+                                                               <a href="fixedthreadpool.html#type" class="tsd-kind-icon">type</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedthreadpool.html#afterworkersetup" class="tsd-kind-icon">after<wbr>Worker<wbr>Setup</a>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class">
                                                                <a href="fixedthreadpool.html#execute" class="tsd-kind-icon">execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class">
+                                                               <a href="fixedthreadpool.html#findfreetasksmapentry" class="tsd-kind-icon">find<wbr>Free<wbr>Tasks<wbr>Map<wbr>Entry</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedthreadpool.html#increaseworkerstask" class="tsd-kind-icon">increase<wbr>Workers<wbr>Task</a>
                                                        </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedthreadpool.html#internalexecute" class="tsd-kind-icon">internal<wbr>Execute</a>
                                                        </li>
+                                                       <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
+                                                               <a href="fixedthreadpool.html#internalgetbusystatus" class="tsd-kind-icon">internal<wbr>Get<wbr>Busy<wbr>Status</a>
+                                                       </li>
                                                        <li class=" tsd-kind-method tsd-parent-kind-class tsd-is-protected">
                                                                <a href="fixedthreadpool.html#ismain" class="tsd-kind-icon">is<wbr>Main</a>
                                                        </li>
index 9066930dd4987a741f6878336d422bc1b887906c..b28df0560b8ad08f8222ffe60d5ab00fd12b8e58 100644 (file)
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#constructor">constructor</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/thread-worker.ts#L25">src/worker/thread-worker.ts:25</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/thread-worker.ts#L25">src/worker/thread-worker.ts:25</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#async">async</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L34">src/worker/abstract-worker.ts:34</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L34">src/worker/abstract-worker.ts:34</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#interval">interval</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L42">src/worker/abstract-worker.ts:42</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#killbehavior">killBehavior</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L30">src/worker/abstract-worker.ts:30</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L30">src/worker/abstract-worker.ts:30</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#lasttask">lastTask</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L38">src/worker/abstract-worker.ts:38</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L38">src/worker/abstract-worker.ts:38</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#maxinactivetime">maxInactiveTime</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L26">src/worker/abstract-worker.ts:26</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L26">src/worker/abstract-worker.ts:26</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#checkalive">checkAlive</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L130">src/worker/abstract-worker.ts:130</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L130">src/worker/abstract-worker.ts:130</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#getmainworker">getMainWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L113">src/worker/abstract-worker.ts:113</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L113">src/worker/abstract-worker.ts:113</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#handleerror">handleError</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L142">src/worker/abstract-worker.ts:142</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L142">src/worker/abstract-worker.ts:142</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#run">run</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L152">src/worker/abstract-worker.ts:152</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L152">src/worker/abstract-worker.ts:152</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Inherited from <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#runasync">runAsync</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/abstract-worker.ts#L173">src/worker/abstract-worker.ts:173</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/abstract-worker.ts#L173">src/worker/abstract-worker.ts:173</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                        <aside class="tsd-sources">
                                                                <p>Overrides <a href="abstractworker.html">AbstractWorker</a>.<a href="abstractworker.html#sendtomainworker">sendToMainWorker</a></p>
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/thread-worker.ts#L36">src/worker/thread-worker.ts:36</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/thread-worker.ts#L36">src/worker/thread-worker.ts:36</a></li>
                                                                </ul>
                                                        </aside>
                                                        <h4 class="tsd-parameters-title">Parameters</h4>
index 3edacaa6ec7670e07651741c13d5e2d483748ca2..6154496e75fabbbbe9b2199f0dffa5b5fb420b62 100644 (file)
                                        <div class="tsd-signature tsd-kind-icon">Error<wbr>Handler&lt;Worker&gt;<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>this<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Worker</span>, e<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Error</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L24">src/pools/abstract-pool.ts:24</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L24">src/pools/abstract-pool.ts:24</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Exit<wbr>Handler&lt;Worker&gt;<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>this<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Worker</span>, code<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L34">src/pools/abstract-pool.ts:34</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L34">src/pools/abstract-pool.ts:34</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Kill<wbr>Behavior<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-symbol">typeof </span><a href="index.html#killbehaviors" class="tsd-signature-type" data-tsd-kind="Variable">KillBehaviors</a></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/worker-options.ts#L18">src/worker/worker-options.ts:18</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/worker-options.ts#L18">src/worker/worker-options.ts:18</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Online<wbr>Handler&lt;Worker&gt;<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">(</span>this<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> =&gt; </span><span class="tsd-signature-type">void</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L29">src/pools/abstract-pool.ts:29</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L29">src/pools/abstract-pool.ts:29</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Thread<wbr>Worker<wbr>With<wbr>Message<wbr>Channel<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-type">Draft</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">MessageChannel</span><span class="tsd-signature-symbol">&gt;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/thread/fixed.ts#L9">src/pools/thread/fixed.ts:9</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/thread/fixed.ts#L10">src/pools/thread/fixed.ts:10</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Worker<wbr>Choice<wbr>Strategy<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">keyof </span><span class="tsd-signature-symbol">typeof </span><a href="index.html#workerchoicestrategies" class="tsd-signature-type" data-tsd-kind="Variable">WorkerChoiceStrategies</a></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/selection-strategies.ts#L21">src/pools/selection-strategies.ts:21</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/selection-strategies.ts#L22">src/pools/selection-strategies.ts:22</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Kill<wbr>Behaviors<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Readonly</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>HARD<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;HARD&quot;</span><span class="tsd-signature-symbol">; </span>SOFT<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;SOFT&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/worker-options.ts#L4">src/worker/worker-options.ts:4</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/worker-options.ts#L4">src/worker/worker-options.ts:4</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">Worker<wbr>Choice<wbr>Strategies<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Readonly</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>LESS_RECENTLY_USED<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;LESS_RECENTLY_USED&quot;</span><span class="tsd-signature-symbol">; </span>ROUND_ROBIN<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;ROUND_ROBIN&quot;</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> = ...</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/selection-strategies.ts#L7">src/pools/selection-strategies.ts:7</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/selection-strategies.ts#L8">src/pools/selection-strategies.ts:8</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
index ee04a019a029ebfc4941db88c8b567c48fce759b..2ec928b1e5c1e913b525c479da323a6c7b9f570e 100644 (file)
@@ -92,6 +92,7 @@
                                                <section class="tsd-index-section ">
                                                        <h3>Properties</h3>
                                                        <ul class="tsd-index-list">
+                                                               <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="clusterpooloptions.html#enableevents" class="tsd-kind-icon">enable<wbr>Events</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-interface"><a href="clusterpooloptions.html#env" class="tsd-kind-icon">env</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="clusterpooloptions.html#errorhandler" class="tsd-kind-icon">error<wbr>Handler</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-interface tsd-is-inherited"><a href="clusterpooloptions.html#exithandler" class="tsd-kind-icon">exit<wbr>Handler</a></li>
                        </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Properties</h2>
+                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+                                       <a name="enableevents" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> enable<wbr>Events</h3>
+                                       <div class="tsd-signature tsd-kind-icon">enable<wbr>Events<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></div>
+                                       <aside class="tsd-sources">
+                                               <p>Inherited from <a href="pooloptions.html">PoolOptions</a>.<a href="pooloptions.html#enableevents">enableEvents</a></p>
+                                               <ul>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L95">src/pools/abstract-pool.ts:95</a></li>
+                                               </ul>
+                                       </aside>
+                                       <div class="tsd-comment tsd-typography">
+                                               <div class="lead">
+                                                       <p>Pool events emission.</p>
+                                               </div>
+                                               <p>Default to true.</p>
+                                       </div>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
                                        <a name="env" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagOptional">Optional</span> env</h3>
                                        <div class="tsd-signature tsd-kind-icon">env<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/cluster/fixed.ts#L16">src/pools/cluster/fixed.ts:16</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/cluster/fixed.ts#L17">src/pools/cluster/fixed.ts:17</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="pooloptions.html">PoolOptions</a>.<a href="pooloptions.html#errorhandler">errorHandler</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L77">src/pools/abstract-pool.ts:77</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L77">src/pools/abstract-pool.ts:77</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="pooloptions.html">PoolOptions</a>.<a href="pooloptions.html#exithandler">exitHandler</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L85">src/pools/abstract-pool.ts:85</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L85">src/pools/abstract-pool.ts:85</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="pooloptions.html">PoolOptions</a>.<a href="pooloptions.html#onlinehandler">onlineHandler</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L81">src/pools/abstract-pool.ts:81</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L81">src/pools/abstract-pool.ts:81</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <aside class="tsd-sources">
                                                <p>Inherited from <a href="pooloptions.html">PoolOptions</a>.<a href="pooloptions.html#workerchoicestrategy">workerChoiceStrategy</a></p>
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L89">src/pools/abstract-pool.ts:89</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L89">src/pools/abstract-pool.ts:89</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <li class="current tsd-kind-interface">
                                                <a href="clusterpooloptions.html" class="tsd-kind-icon">Cluster<wbr>Pool<wbr>Options</a>
                                                <ul>
+                                                       <li class=" tsd-kind-property tsd-parent-kind-interface tsd-is-inherited">
+                                                               <a href="clusterpooloptions.html#enableevents" class="tsd-kind-icon">enable<wbr>Events</a>
+                                                       </li>
                                                        <li class=" tsd-kind-property tsd-parent-kind-interface">
                                                                <a href="clusterpooloptions.html#env" class="tsd-kind-icon">env</a>
                                                        </li>
index a2643a39caeb96b9413712faac79d86bb64a812e..b0061b54623549e521c93ef879ac796d450c4f15 100644 (file)
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/pool.ts#L20">src/pools/pool.ts:20</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/pool.ts#L20">src/pools/pool.ts:20</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/pool.ts#L16">src/pools/pool.ts:16</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/pool.ts#L16">src/pools/pool.ts:16</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/pool.ts#L26">src/pools/pool.ts:26</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/pool.ts#L26">src/pools/pool.ts:26</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
index c4233ce319629d11965d230497604e8eef4c322f..2514393de32dad26ee3f22fc12217d7a897a1d90 100644 (file)
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L46">src/pools/abstract-pool.ts:46</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L46">src/pools/abstract-pool.ts:46</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L53">src/pools/abstract-pool.ts:53</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L53">src/pools/abstract-pool.ts:53</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L60">src/pools/abstract-pool.ts:60</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L60">src/pools/abstract-pool.ts:60</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
                                                <li class="tsd-description">
                                                        <aside class="tsd-sources">
                                                                <ul>
-                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L67">src/pools/abstract-pool.ts:67</a></li>
+                                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L67">src/pools/abstract-pool.ts:67</a></li>
                                                                </ul>
                                                        </aside>
                                                        <div class="tsd-comment tsd-typography">
index f7dc49ab1b142a59e518e943fb6cd7aaa3acc9e1..6db10692b6176d3217663e70cc707c9cac72a257 100644 (file)
                                                <section class="tsd-index-section ">
                                                        <h3>Properties</h3>
                                                        <ul class="tsd-index-list">
+                                                               <li class="tsd-kind-property tsd-parent-kind-interface"><a href="pooloptions.html#enableevents" class="tsd-kind-icon">enable<wbr>Events</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-interface"><a href="pooloptions.html#errorhandler" class="tsd-kind-icon">error<wbr>Handler</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-interface"><a href="pooloptions.html#exithandler" class="tsd-kind-icon">exit<wbr>Handler</a></li>
                                                                <li class="tsd-kind-property tsd-parent-kind-interface"><a href="pooloptions.html#onlinehandler" class="tsd-kind-icon">online<wbr>Handler</a></li>
                        </section>
                        <section class="tsd-panel-group tsd-member-group ">
                                <h2>Properties</h2>
+                               <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
+                                       <a name="enableevents" class="tsd-anchor"></a>
+                                       <h3><span class="tsd-flag ts-flagOptional">Optional</span> enable<wbr>Events</h3>
+                                       <div class="tsd-signature tsd-kind-icon">enable<wbr>Events<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></div>
+                                       <aside class="tsd-sources">
+                                               <ul>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L95">src/pools/abstract-pool.ts:95</a></li>
+                                               </ul>
+                                       </aside>
+                                       <div class="tsd-comment tsd-typography">
+                                               <div class="lead">
+                                                       <p>Pool events emission.</p>
+                                               </div>
+                                               <p>Default to true.</p>
+                                       </div>
+                               </section>
                                <section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
                                        <a name="errorhandler" class="tsd-anchor"></a>
                                        <h3><span class="tsd-flag ts-flagOptional">Optional</span> error<wbr>Handler</h3>
                                        <div class="tsd-signature tsd-kind-icon">error<wbr>Handler<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../index.html#errorhandler" class="tsd-signature-type" data-tsd-kind="Type alias">ErrorHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">&gt;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L77">src/pools/abstract-pool.ts:77</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L77">src/pools/abstract-pool.ts:77</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">exit<wbr>Handler<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../index.html#exithandler" class="tsd-signature-type" data-tsd-kind="Type alias">ExitHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">&gt;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L85">src/pools/abstract-pool.ts:85</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L85">src/pools/abstract-pool.ts:85</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">online<wbr>Handler<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../index.html#onlinehandler" class="tsd-signature-type" data-tsd-kind="Type alias">OnlineHandler</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Worker</span><span class="tsd-signature-symbol">&gt;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L81">src/pools/abstract-pool.ts:81</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L81">src/pools/abstract-pool.ts:81</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">worker<wbr>Choice<wbr>Strategy<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;ROUND_ROBIN&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;LESS_RECENTLY_USED&quot;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/pools/abstract-pool.ts#L89">src/pools/abstract-pool.ts:89</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/pools/abstract-pool.ts#L89">src/pools/abstract-pool.ts:89</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <li class="current tsd-kind-interface tsd-has-type-parameter">
                                                <a href="pooloptions.html" class="tsd-kind-icon">Pool<wbr>Options</a>
                                                <ul>
+                                                       <li class=" tsd-kind-property tsd-parent-kind-interface">
+                                                               <a href="pooloptions.html#enableevents" class="tsd-kind-icon">enable<wbr>Events</a>
+                                                       </li>
                                                        <li class=" tsd-kind-property tsd-parent-kind-interface">
                                                                <a href="pooloptions.html#errorhandler" class="tsd-kind-icon">error<wbr>Handler</a>
                                                        </li>
index 49f7fc6348b9e650899c020bdce216751a190177..374d84cfd64da375e6d880e4980b39aebff2f9c1 100644 (file)
                                        <div class="tsd-signature tsd-kind-icon">async<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">boolean</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/worker-options.ts#L57">src/worker/worker-options.ts:57</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/worker-options.ts#L57">src/worker/worker-options.ts:57</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">kill<wbr>Behavior<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;SOFT&quot;</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">&quot;HARD&quot;</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/worker-options.ts#L68">src/worker/worker-options.ts:68</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/worker-options.ts#L68">src/worker/worker-options.ts:68</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
                                        <div class="tsd-signature tsd-kind-icon">max<wbr>Inactive<wbr>Time<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span></div>
                                        <aside class="tsd-sources">
                                                <ul>
-                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/5d4101b/src/worker/worker-options.ts#L51">src/worker/worker-options.ts:51</a></li>
+                                                       <li>Defined in <a href="https://github.com/jerome-benoit/poolifier/blob/7fb595d/src/worker/worker-options.ts#L51">src/worker/worker-options.ts:51</a></li>
                                                </ul>
                                        </aside>
                                        <div class="tsd-comment tsd-typography">
index 42bb89f88597f995303d6498aa13b117bdc22d9c..4368e854e322d0931cc13e7c2b2fd34f6dcf1a9b 100644 (file)
@@ -5,6 +5,7 @@
   "main": "lib/index.js",
   "scripts": {
     "build": "rollup --config --environment BUILD:development",
+    "build:typedoc": "rollup --config --environment BUILD:development --environment DOCUMENTATION",
     "build:prod": "rollup --config",
     "benchmark": "npm run build && node -r source-map-support/register benchmarks/internal/bench.js",
     "benchmark:debug": "npm run build && node -r source-map-support/register --inspect benchmarks/internal/bench.js",
index 0c4b59c92fef071bbddd487d1490ed5d2f8db38b..ff7413dd52f2f24e32b7359ce0f14af6180cca67 100644 (file)
@@ -4,7 +4,7 @@ import type {
 } from '../utility-types'
 import { isKillBehavior, KillBehaviors } from '../worker/worker-options'
 import type { IPoolInternal } from './pool-internal'
-import { PoolEmitter } from './pool-internal'
+import { PoolEmitter, PoolType } from './pool-internal'
 import type { WorkerChoiceStrategy } from './selection-strategies'
 import {
   WorkerChoiceStrategies,
@@ -87,6 +87,12 @@ export interface PoolOptions<Worker> {
    * The work choice strategy to use in this pool.
    */
   workerChoiceStrategy?: WorkerChoiceStrategy
+  /**
+   * Pool events emission.
+   *
+   * Default to true.
+   */
+  enableEvents?: boolean
 }
 
 /**
@@ -108,7 +114,10 @@ export abstract class AbstractPool<
   public readonly tasks: Map<Worker, number> = new Map<Worker, number>()
 
   /** @inheritdoc */
-  public readonly emitter: PoolEmitter
+  public readonly emitter?: PoolEmitter
+
+  /** @inheritdoc */
+  public readonly max?: number
 
   /**
    * The promise map.
@@ -156,13 +165,16 @@ export abstract class AbstractPool<
     }
     this.checkNumberOfWorkers(this.numberOfWorkers)
     this.checkFilePath(this.filePath)
+    this.checkPoolOptions(this.opts)
     this.setupHook()
 
     for (let i = 1; i <= this.numberOfWorkers; i++) {
       this.createAndSetupWorker()
     }
 
-    this.emitter = new PoolEmitter()
+    if (this.opts.enableEvents) {
+      this.emitter = new PoolEmitter()
+    }
     this.workerChoiceStrategyContext = new WorkerChoiceStrategyContext(
       this,
       () => {
@@ -202,14 +214,21 @@ export abstract class AbstractPool<
       throw new Error(
         'Cannot instantiate a pool with a negative number of workers'
       )
-    } else if (!this.dynamic && numberOfWorkers === 0) {
+    } else if (this.type === PoolType.FIXED && numberOfWorkers === 0) {
       throw new Error('Cannot instantiate a fixed pool with no worker')
     }
   }
 
+  private checkPoolOptions (opts: PoolOptions<Worker>): void {
+    this.opts.enableEvents = opts.enableEvents ?? true
+  }
+
   /** @inheritdoc */
-  public get dynamic (): boolean {
-    return false
+  public abstract get type (): PoolType
+
+  /** @inheritdoc */
+  public get numberOfRunningTasks (): number {
+    return this.promiseMap.size
   }
 
   /** @inheritdoc */
@@ -222,11 +241,33 @@ export abstract class AbstractPool<
     )
   }
 
+  /** @inheritdoc */
+  public abstract get busy (): boolean
+
+  protected internalGetBusyStatus (): boolean {
+    return (
+      this.numberOfRunningTasks >= this.numberOfWorkers &&
+      this.findFreeTasksMapEntry() === false
+    )
+  }
+
+  /** @inheritdoc */
+  public findFreeTasksMapEntry (): [Worker, number] | false {
+    for (const [worker, numberOfTasks] of this.tasks) {
+      if (numberOfTasks === 0) {
+        // A worker is free, return the matching tasks map entry
+        return [worker, numberOfTasks]
+      }
+    }
+    return false
+  }
+
   /** @inheritdoc */
   public execute (data: Data): Promise<Response> {
     // Configure worker to handle message with the specified task
     const worker = this.chooseWorker()
     this.increaseWorkersTask(worker)
+    this.checkAndEmitBusy()
     const messageId = ++this.nextMessageId
     const res = this.internalExecute(worker, messageId)
     this.sendToWorker(worker, { data: data || ({} as Data), id: messageId })
@@ -259,7 +300,7 @@ export abstract class AbstractPool<
   protected abstract isMain (): boolean
 
   /**
-   * Increase the number of tasks that the given workers has done.
+   * Increase the number of tasks that the given workers has applied.
    *
    * @param worker Worker whose tasks are increased.
    */
@@ -268,7 +309,7 @@ export abstract class AbstractPool<
   }
 
   /**
-   * Decrease the number of tasks that the given workers has done.
+   * Decrease the number of tasks that the given workers has applied.
    *
    * @param worker Worker whose tasks are decreased.
    */
@@ -277,7 +318,7 @@ export abstract class AbstractPool<
   }
 
   /**
-   * Step the number of tasks that the given workers has done.
+   * Step the number of tasks that the given workers has applied.
    *
    * @param worker Worker whose tasks are set.
    * @param step Worker number of tasks step.
@@ -399,4 +440,10 @@ export abstract class AbstractPool<
       }
     }
   }
+
+  private checkAndEmitBusy (): void {
+    if (this.opts.enableEvents && this.busy) {
+      this.emitter?.emit('busy')
+    }
+  }
 }
index f0c3c0e40cf21cceb0e2048d1b7931417d972c96..33497b0314ef1e46eb3bd129557f31b5e5f4cc17 100644 (file)
@@ -1,3 +1,4 @@
+import { PoolType } from '../pool-internal'
 import type { ClusterPoolOptions } from './fixed'
 import { FixedClusterPool } from './fixed'
 
@@ -35,7 +36,12 @@ export class DynamicClusterPool<
   }
 
   /** @inheritdoc */
-  public get dynamic (): boolean {
-    return true
+  public get type (): PoolType {
+    return PoolType.DYNAMIC
+  }
+
+  /** @inheritdoc */
+  public get busy (): boolean {
+    return this.workers.length === this.max
   }
 }
index f651d3ade895fdfee56497e642c7e4ce155ead06..b522947f25cb6f9497c7935fdcd131d1747e8b34 100644 (file)
@@ -2,6 +2,7 @@ import { fork, isMaster, setupMaster, Worker } from 'cluster'
 import type { MessageValue } from '../../utility-types'
 import type { PoolOptions } from '../abstract-pool'
 import { AbstractPool } from '../abstract-pool'
+import { PoolType } from '../pool-internal'
 
 /**
  * Options for a poolifier cluster pool.
@@ -84,4 +85,14 @@ export class FixedClusterPool<
     // Listen worker messages.
     this.registerWorkerMessageListener(worker, super.workerListener())
   }
+
+  /** @inheritdoc */
+  public get type (): PoolType {
+    return PoolType.FIXED
+  }
+
+  /** @inheritdoc */
+  public get busy (): boolean {
+    return this.internalGetBusyStatus()
+  }
 }
index 911e761df157a07f54ac1300328c82548cc6d9d6..dd71ae71045b555d99b64a24bba516461c77b561 100644 (file)
@@ -2,6 +2,14 @@ import EventEmitter from 'events'
 import type { IWorker } from './abstract-pool'
 import type { IPool } from './pool'
 
+/**
+ * Pool types.
+ */
+export enum PoolType {
+  FIXED = 'fixed',
+  DYNAMIC = 'dynamic'
+}
+
 /**
  * Internal poolifier pool emitter.
  */
@@ -39,17 +47,40 @@ export interface IPoolInternal<
    *
    * - `'busy'`
    */
-  readonly emitter: PoolEmitter
+  readonly emitter?: PoolEmitter
 
   /**
-   * Whether the pool is dynamic or not.
+   * Pool type.
    *
-   * If it is dynamic, it provides the `max` property.
+   * If it is `'dynamic'`, it provides the `max` property.
    */
-  readonly dynamic: boolean
+  readonly type: PoolType
 
   /**
    * Maximum number of workers that can be created by this pool.
    */
   readonly max?: number
+
+  /**
+   * Whether the pool is busy or not.
+   *
+   * The pool busyness boolean status.
+   */
+  readonly busy: boolean
+
+  /**
+   * Number of tasks currently concurrently running.
+   */
+  readonly numberOfRunningTasks: number
+
+  /**
+   * Find a tasks map entry with a free worker based on the number of tasks the worker has applied.
+   *
+   * If an entry is found with a worker that has `0` tasks, it is detected as free.
+   *
+   * If no tasks map entry with a free worker was found, `false` will be returned.
+   *
+   * @returns A tasks map entry with a free worker if there was one, otherwise `false`.
+   */
+  findFreeTasksMapEntry(): [Worker, number] | false
 }
index 692ace93889efb399c83ab04072be95fbb1ad314..034b1612334abe6b83ad1943dd05857e7dad89b7 100644 (file)
@@ -1,5 +1,6 @@
 import type { IWorker } from './abstract-pool'
 import type { IPoolInternal } from './pool-internal'
+import { PoolType } from './pool-internal'
 
 /**
  * Enumeration of worker choice strategies.
@@ -89,7 +90,7 @@ class LessRecentlyUsedWorkerChoiceStrategy<
 
   /** @inheritdoc */
   public choose (): Worker {
-    const isPoolDynamic = this.pool.dynamic
+    const isPoolDynamic = this.pool.type === PoolType.DYNAMIC
     let minNumberOfTasks = Infinity
     // A worker is always found because it picks the one with fewer tasks
     let lessRecentlyUsedWorker!: Worker
@@ -97,8 +98,8 @@ class LessRecentlyUsedWorkerChoiceStrategy<
       if (!isPoolDynamic && numberOfTasks === 0) {
         return worker
       } else if (numberOfTasks < minNumberOfTasks) {
-        minNumberOfTasks = numberOfTasks
         lessRecentlyUsedWorker = worker
+        minNumberOfTasks = numberOfTasks
       }
     }
     return lessRecentlyUsedWorker
@@ -121,7 +122,7 @@ class DynamicPoolWorkerChoiceStrategy<Worker extends IWorker, Data, Response>
    *
    * @param pool The pool instance.
    * @param createDynamicallyWorkerCallback The worker creation callback for dynamic pool.
-   * @param workerChoiceStrategy The worker choice strategy when the pull is full.
+   * @param workerChoiceStrategy The worker choice strategy when the pull is busy.
    */
   public constructor (
     private readonly pool: IPoolInternal<Worker, Data, Response>,
@@ -136,15 +137,12 @@ class DynamicPoolWorkerChoiceStrategy<Worker extends IWorker, Data, Response>
 
   /** @inheritdoc */
   public choose (): Worker {
-    const freeWorker = SelectionStrategiesUtils.findFreeWorkerBasedOnTasks(
-      this.pool.tasks
-    )
-    if (freeWorker) {
-      return freeWorker
+    const freeTaskMapEntry = this.pool.findFreeTasksMapEntry()
+    if (freeTaskMapEntry) {
+      return freeTaskMapEntry[0]
     }
 
-    if (this.pool.workers.length === this.pool.max) {
-      this.pool.emitter.emit('busy')
+    if (this.pool.busy) {
       return this.workerChoiceStrategy.choose()
     }
 
@@ -192,7 +190,7 @@ export class WorkerChoiceStrategyContext<
   private getPoolWorkerChoiceStrategy (
     workerChoiceStrategy: WorkerChoiceStrategy = WorkerChoiceStrategies.ROUND_ROBIN
   ): IWorkerChoiceStrategy<Worker> {
-    if (this.pool.dynamic) {
+    if (this.pool.type === PoolType.DYNAMIC) {
       return new DynamicPoolWorkerChoiceStrategy(
         this.pool,
         this.createDynamicallyWorkerCallback,
@@ -229,31 +227,9 @@ export class WorkerChoiceStrategyContext<
 }
 
 /**
- * Worker selection strategies helpers.
+ * Worker selection strategies helpers class.
  */
 class SelectionStrategiesUtils {
-  /**
-   * Find a free worker based on number of tasks the worker has applied.
-   *
-   * If a worker was found that has `0` tasks, it is detected as free and will be returned.
-   *
-   * If no free worker was found, `null` will be returned.
-   *
-   * @param workerTasksMap The pool worker tasks map.
-   * @returns A free worker if there was one, otherwise `null`.
-   */
-  public static findFreeWorkerBasedOnTasks<Worker extends IWorker> (
-    workerTasksMap: Map<Worker, number>
-  ): Worker | null {
-    for (const [worker, numberOfTasks] of workerTasksMap) {
-      if (numberOfTasks === 0) {
-        // A worker is free, use it
-        return worker
-      }
-    }
-    return null
-  }
-
   /**
    * Get the worker choice strategy instance.
    *
index b4fd46c1c401d5bde0fd990fe35a05e1e4129bb4..16aeb4397795287d46e85a1278bf1f7357ee1ecb 100644 (file)
@@ -1,4 +1,5 @@
 import type { PoolOptions } from '../abstract-pool'
+import { PoolType } from '../pool-internal'
 import type { ThreadWorkerWithMessageChannel } from './fixed'
 import { FixedThreadPool } from './fixed'
 
@@ -36,7 +37,12 @@ export class DynamicThreadPool<
   }
 
   /** @inheritdoc */
-  public get dynamic (): boolean {
-    return true
+  public get type (): PoolType {
+    return PoolType.DYNAMIC
+  }
+
+  /** @inheritdoc */
+  public get busy (): boolean {
+    return this.workers.length === this.max
   }
 }
index 6fec9aa04db6af79c7eac3deae91d09b4d311cd4..abd1b6b8b081ac2740ac96ea6a1265a690ff407b 100644 (file)
@@ -2,6 +2,7 @@ import { isMainThread, MessageChannel, SHARE_ENV, Worker } from 'worker_threads'
 import type { Draft, MessageValue } from '../../utility-types'
 import type { PoolOptions } from '../abstract-pool'
 import { AbstractPool } from '../abstract-pool'
+import { PoolType } from '../pool-internal'
 
 /**
  * A thread worker with message channels for communication between main thread and thread worker.
@@ -81,4 +82,14 @@ export class FixedThreadPool<
     // Listen worker messages.
     this.registerWorkerMessageListener(worker, super.workerListener())
   }
+
+  /** @inheritdoc */
+  public get type (): PoolType {
+    return PoolType.FIXED
+  }
+
+  /** @inheritdoc */
+  public get busy (): boolean {
+    return this.internalGetBusyStatus()
+  }
 }
index 5d6311b9b4b8b7d581531007803574d83935610b..03a5db7eac5eef8ef5464907892bb27aecbb0442 100644 (file)
@@ -2,6 +2,8 @@ const expect = require('expect')
 const { FixedClusterPool, FixedThreadPool } = require('../../../lib/index')
 const expectedError = new Error('Worker could not be found in tasks map')
 
+const numberOfWorkers = 1
+
 class StubPoolWithTasksMapClear extends FixedThreadPool {
   removeAllWorker () {
     this.tasks.clear()
@@ -17,17 +19,18 @@ class StubPoolWithIsMainMethod extends FixedThreadPool {
 describe('Abstract pool test suite', () => {
   it('Simulate worker not found during increaseWorkersTask', () => {
     const pool = new StubPoolWithTasksMapClear(
-      1,
+      numberOfWorkers,
       './tests/worker-files/thread/testWorker.js'
     )
     // Simulate worker not found.
     pool.removeAllWorker()
     expect(() => pool.increaseWorkersTask()).toThrowError(expectedError)
+    pool.destroy()
   })
 
   it('Simulate worker not found during decreaseWorkersTasks', () => {
     const pool = new StubPoolWithTasksMapClear(
-      1,
+      numberOfWorkers,
       './tests/worker-files/thread/testWorker.js',
       {
         errorHandler: e => console.error(e)
@@ -36,13 +39,14 @@ describe('Abstract pool test suite', () => {
     // Simulate worker not found.
     pool.removeAllWorker()
     expect(() => pool.decreaseWorkersTasks()).toThrowError(expectedError)
+    pool.destroy()
   })
 
   it('Simulate pool creation from a non main thread/process', () => {
     expect(
       () =>
         new StubPoolWithIsMainMethod(
-          1,
+          numberOfWorkers,
           './tests/worker-files/thread/testWorker.js',
           {
             errorHandler: e => console.error(e)
@@ -52,11 +56,11 @@ describe('Abstract pool test suite', () => {
   })
 
   it('Verify that filePath is checked', () => {
-    expect(() => new StubPoolWithIsMainMethod(1)).toThrowError(
-      new Error('Cannot start a pool from a worker!')
+    expect(() => new FixedThreadPool(numberOfWorkers)).toThrowError(
+      new Error('Please specify a file with a worker implementation')
     )
-    expect(() => new StubPoolWithIsMainMethod(1, '')).toThrowError(
-      new Error('Cannot start a pool from a worker!')
+    expect(() => new FixedThreadPool(numberOfWorkers, '')).toThrowError(
+      new Error('Please specify a file with a worker implementation')
     )
   })
 
@@ -87,4 +91,39 @@ describe('Abstract pool test suite', () => {
       )
     )
   })
+
+  it('Verify that pool options are checked', () => {
+    let pool = new FixedThreadPool(
+      numberOfWorkers,
+      './tests/worker-files/thread/testWorker.js'
+    )
+    expect(pool.opts.enableEvents).toEqual(true)
+    expect(pool.emitter).toBeDefined()
+    pool.destroy()
+    pool = new FixedThreadPool(
+      numberOfWorkers,
+      './tests/worker-files/thread/testWorker.js',
+      {
+        enableEvents: false
+      }
+    )
+    expect(pool.opts.enableEvents).toEqual(false)
+    expect(pool.emitter).toBeUndefined()
+    pool.destroy()
+  })
+
+  it("Verify that pool event emitter 'busy' event can register a callback", () => {
+    const pool = new FixedThreadPool(
+      numberOfWorkers,
+      './tests/worker-files/thread/testWorker.js'
+    )
+    const promises = []
+    let poolBusy = 0
+    pool.emitter.on('busy', () => poolBusy++)
+    for (let i = 0; i < numberOfWorkers * 2; i++) {
+      promises.push(pool.execute({ test: 'test' }))
+    }
+    expect(poolBusy).toEqual(numberOfWorkers)
+    pool.destroy()
+  })
 })
index 607e1fe9cf183ca316c6a18ea9b50a5eba3232d9..54d53b11a8b60931a39756d614ece9621de88cc9 100644 (file)
@@ -21,14 +21,14 @@ describe('Dynamic cluster pool test suite', () => {
 
   it('Verify that new workers are created when required, max size is not exceeded and that after a while new workers will die', async () => {
     const promises = []
-    let busy = 0
-    pool.emitter.on('busy', () => busy++)
+    let poolBusy = 0
+    pool.emitter.on('busy', () => poolBusy++)
     for (let i = 0; i < max * 2; i++) {
       promises.push(pool.execute({ test: 'test' }))
     }
     expect(pool.workers.length).toBeLessThanOrEqual(max)
     expect(pool.workers.length).toBeGreaterThan(min)
-    expect(busy > 1).toBeTruthy()
+    expect(poolBusy).toEqual(max + 1)
     const numberOfExitEvents = await TestUtils.waitExits(pool, max - min)
     expect(numberOfExitEvents).toBe(max - min)
   })
index a5eaa29ab5a4b1430066721decf5c451f8ae9180..c69b72d8370666f0b1f907e2c26e1e784e784c93 100644 (file)
@@ -11,7 +11,8 @@ const pool = new FixedClusterPool(
 )
 const emptyPool = new FixedClusterPool(
   1,
-  './tests/worker-files/cluster/emptyWorker.js'
+  './tests/worker-files/cluster/emptyWorker.js',
+  { exitHandler: () => console.log('empty pool worker exited') }
 )
 const echoPool = new FixedClusterPool(
   1,
@@ -66,6 +67,16 @@ describe('Fixed cluster pool test suite', () => {
     expect(result).toBeFalsy()
   })
 
+  it('Verify that busy event is emitted', async () => {
+    const promises = []
+    let poolBusy = 0
+    pool.emitter.on('busy', () => poolBusy++)
+    for (let i = 0; i < numberOfWorkers * 2; i++) {
+      promises.push(pool.execute({ test: 'test' }))
+    }
+    expect(poolBusy).toEqual(numberOfWorkers)
+  })
+
   it('Verify that is possible to have a worker that return undefined', async () => {
     const result = await emptyPool.execute()
     expect(result).toBeFalsy()
@@ -87,7 +98,7 @@ describe('Fixed cluster pool test suite', () => {
       inError = e
     }
     expect(inError).toBeDefined()
-    expect(typeof inError === 'string').toBeTruthy()
+    expect(typeof inError === 'string').toEqual(true)
     expect(inError).toBe('Error Message from ClusterWorker')
   })
 
@@ -100,7 +111,7 @@ describe('Fixed cluster pool test suite', () => {
       inError = e
     }
     expect(inError).toBeDefined()
-    expect(typeof inError === 'string').toBeTruthy()
+    expect(typeof inError === 'string').toEqual(true)
     expect(inError).toBe('Error Message from ClusterWorker:async')
   })
 
index 2e3a849257befecc2e3564518c099d2fa267005d..4e7df2297fee8902d4a2331ef33baba84b24dcc4 100644 (file)
@@ -21,13 +21,13 @@ describe('Dynamic thread pool test suite', () => {
 
   it('Verify that new workers are created when required, max size is not exceeded and that after a while new workers will die', async () => {
     const promises = []
-    let busy = 0
-    pool.emitter.on('busy', () => busy++)
+    let poolBusy = 0
+    pool.emitter.on('busy', () => poolBusy++)
     for (let i = 0; i < max * 2; i++) {
       promises.push(pool.execute({ test: 'test' }))
     }
     expect(pool.workers.length).toBe(max)
-    expect(busy > 1).toBeTruthy()
+    expect(poolBusy).toEqual(max + 1)
     const res = await TestUtils.waitExits(pool, max - min)
     expect(res).toBe(max - min)
   })
index b70d4c624c5d9744494c6ac87ed9f290e1633221..3401fde316130e4330f111fb0c421e2ad4833d4f 100644 (file)
@@ -12,7 +12,7 @@ const pool = new FixedThreadPool(
 const emptyPool = new FixedThreadPool(
   1,
   './tests/worker-files/thread/emptyWorker.js',
-  { exitHandler: () => console.log('WORKER EXITED') }
+  { exitHandler: () => console.log('empty pool worker exited') }
 )
 const echoPool = new FixedThreadPool(
   1,
@@ -26,6 +26,14 @@ const errorPool = new FixedThreadPool(
     onlineHandler: () => console.log('worker is online')
   }
 )
+const asyncErrorPool = new FixedThreadPool(
+  1,
+  './tests/worker-files/thread/asyncErrorWorker.js',
+  {
+    errorHandler: e => console.error(e),
+    onlineHandler: () => console.log('worker is online')
+  }
+)
 const asyncPool = new FixedThreadPool(
   1,
   './tests/worker-files/thread/asyncWorker.js'
@@ -37,6 +45,7 @@ describe('Fixed thread pool test suite', () => {
     await echoPool.destroy()
     await asyncPool.destroy()
     await errorPool.destroy()
+    await asyncErrorPool.destroy()
     await emptyPool.destroy()
   })
 
@@ -60,6 +69,16 @@ describe('Fixed thread pool test suite', () => {
     expect(result).toBeFalsy()
   })
 
+  it('Verify that busy event is emitted', async () => {
+    const promises = []
+    let poolBusy = 0
+    pool.emitter.on('busy', () => poolBusy++)
+    for (let i = 0; i < numberOfThreads * 2; i++) {
+      promises.push(pool.execute({ test: 'test' }))
+    }
+    expect(poolBusy).toEqual(numberOfThreads)
+  })
+
   it('Verify that is possible to have a worker that return undefined', async () => {
     const result = await emptyPool.execute()
     expect(result).toBeFalsy()
@@ -72,7 +91,7 @@ describe('Fixed thread pool test suite', () => {
     expect(result.f).toBe(data.f)
   })
 
-  it('Verify that error handling is working properly', async () => {
+  it('Verify that error handling is working properly:sync', async () => {
     const data = { f: 10 }
     let inError
     try {
@@ -80,9 +99,24 @@ describe('Fixed thread pool test suite', () => {
     } catch (e) {
       inError = e
     }
-    expect(inError).toBeTruthy()
-    expect(inError instanceof Error).toBeTruthy()
-    expect(inError.message).toBeTruthy()
+    expect(inError).toBeDefined()
+    expect(inError).toBeInstanceOf(Error)
+    expect(inError.message).toBeDefined()
+    expect(typeof inError.message === 'string').toEqual(true)
+  })
+
+  it('Verify that error handling is working properly:async', async () => {
+    const data = { f: 10 }
+    let inError
+    try {
+      await asyncErrorPool.execute(data)
+    } catch (e) {
+      inError = e
+    }
+    expect(inError).toBeDefined()
+    expect(inError).toBeInstanceOf(Error)
+    expect(inError.message).toBeDefined()
+    expect(typeof inError.message === 'string').toEqual(true)
   })
 
   it('Verify that async function is working properly', async () => {
diff --git a/tests/worker-files/thread/asyncErrorWorker.js b/tests/worker-files/thread/asyncErrorWorker.js
new file mode 100644 (file)
index 0000000..d973f0a
--- /dev/null
@@ -0,0 +1,14 @@
+'use strict'
+const { ThreadWorker, KillBehaviors } = require('../../../lib/index')
+
+async function error (data) {
+  return new Promise((resolve, reject) => {
+    setTimeout(() => reject(new Error(data)), 2000)
+  })
+}
+
+module.exports = new ThreadWorker(error, {
+  maxInactiveTime: 500,
+  async: true,
+  killBehavior: KillBehaviors.HARD
+})
index e9f20ab8e5101120d7f51459bf338676208f404f..cc13c050ca8cd07d485a06e1faa1ba2239c1540f 100644 (file)
@@ -7,5 +7,6 @@ function error (data) {
 
 module.exports = new ThreadWorker(error, {
   maxInactiveTime: 500,
+  async: false,
   killBehavior: KillBehaviors.HARD
 })