From: Jérôme Benoit Date: Sat, 8 Oct 2022 16:48:36 +0000 (+0200) Subject: Generate documentation X-Git-Tag: v2.2.1~5 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a76fac14098cf2138cf8d6997ac7c89d8c3ae508;p=poolifier.git Generate documentation Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc.js b/.eslintrc.js index 37a3c5d5..c251c5a5 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -36,7 +36,7 @@ module.exports = defineConfig({ 'ecma', 'enum', 'fibonacci', - 'inheritdoc', + 'inheritDoc', 'jsdoc', 'poolifier', 'readonly', diff --git a/.vscode/settings.json b/.vscode/settings.json index dd817ae7..196c6bbf 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -9,7 +9,7 @@ "Dependabot", "Gitter", "Shinigami", - "inheritdoc", + "inheritDoc", "lcov", "loglevel", "markdownlint", diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index a13094d4..5674cf39 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -11,11 +11,11 @@ --code-background: var(--dark-code-background); } } -body.light { +:root[data-theme='light'] { --code-background: var(--light-code-background); } -body.dark { +:root[data-theme='dark'] { --code-background: var(--dark-code-background); } diff --git a/docs/assets/icons.css b/docs/assets/icons.css deleted file mode 100644 index 776a3562..00000000 --- a/docs/assets/icons.css +++ /dev/null @@ -1,1043 +0,0 @@ -.tsd-kind-icon { - display: block; - position: relative; - padding-left: 20px; - text-indent: -20px; -} -.tsd-kind-icon:before { - content: ""; - display: inline-block; - vertical-align: middle; - width: 17px; - height: 17px; - margin: 0 3px 2px 0; - background-image: url(./icons.png); -} -@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-kind-icon:before { - background-image: url(./icons@2x.png); - background-size: 238px 204px; - } -} - -.tsd-signature.tsd-kind-icon:before { - background-position: 0 -153px; -} - -.tsd-kind-object-literal > .tsd-kind-icon:before { - background-position: 0px -17px; -} -.tsd-kind-object-literal.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -17px; -} -.tsd-kind-object-literal.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -17px; -} - -.tsd-kind-class > .tsd-kind-icon:before { - background-position: 0px -34px; -} -.tsd-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -34px; -} -.tsd-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -34px; -} - -.tsd-kind-class.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -51px; -} -.tsd-kind-class.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -17px -51px; -} -.tsd-kind-class.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -51px; -} - -.tsd-kind-interface > .tsd-kind-icon:before { - background-position: 0px -68px; -} -.tsd-kind-interface.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -68px; -} -.tsd-kind-interface.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -68px; -} - -.tsd-kind-interface.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -85px; -} -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -17px -85px; -} -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-private - > .tsd-kind-icon:before { - background-position: -34px -85px; -} - -.tsd-kind-namespace > .tsd-kind-icon:before { - background-position: 0px -102px; -} -.tsd-kind-namespace.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; -} -.tsd-kind-namespace.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; -} - -.tsd-kind-module > .tsd-kind-icon:before { - background-position: 0px -102px; -} -.tsd-kind-module.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; -} -.tsd-kind-module.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; -} - -.tsd-kind-enum > .tsd-kind-icon:before { - background-position: 0px -119px; -} -.tsd-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -119px; -} -.tsd-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -119px; -} - -.tsd-kind-enum-member > .tsd-kind-icon:before { - background-position: 0px -136px; -} -.tsd-kind-enum-member.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -136px; -} -.tsd-kind-enum-member.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -136px; -} - -.tsd-kind-signature > .tsd-kind-icon:before { - background-position: 0px -153px; -} -.tsd-kind-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -153px; -} -.tsd-kind-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -153px; -} - -.tsd-kind-type-alias > .tsd-kind-icon:before { - background-position: 0px -170px; -} -.tsd-kind-type-alias.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -170px; -} -.tsd-kind-type-alias.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -170px; -} - -.tsd-kind-type-alias.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -187px; -} -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -17px -187px; -} -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-private - > .tsd-kind-icon:before { - background-position: -34px -187px; -} - -.tsd-kind-variable > .tsd-kind-icon:before { - background-position: -136px -0px; -} -.tsd-kind-variable.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; -} -.tsd-kind-variable.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; -} -.tsd-kind-variable.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -0px; -} - -.tsd-kind-property > .tsd-kind-icon:before { - background-position: -136px -0px; -} -.tsd-kind-property.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; -} -.tsd-kind-property.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; -} -.tsd-kind-property.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -0px; -} - -.tsd-kind-get-signature > .tsd-kind-icon:before { - background-position: -136px -17px; -} -.tsd-kind-get-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -17px; -} -.tsd-kind-get-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -17px; -} - -.tsd-kind-set-signature > .tsd-kind-icon:before { - background-position: -136px -34px; -} -.tsd-kind-set-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -34px; -} -.tsd-kind-set-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -34px; -} - -.tsd-kind-accessor > .tsd-kind-icon:before { - background-position: -136px -51px; -} -.tsd-kind-accessor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -51px; -} -.tsd-kind-accessor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -51px; -} - -.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-function.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -153px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class - > .tsd-kind-icon:before { - background-position: -51px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum - > .tsd-kind-icon:before { - background-position: -170px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -85px; -} - -.tsd-kind-method.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -153px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class - > .tsd-kind-icon:before { - background-position: -51px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum - > .tsd-kind-icon:before { - background-position: -170px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -85px; -} - -.tsd-kind-constructor > .tsd-kind-icon:before { - background-position: -136px -102px; -} -.tsd-kind-constructor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; -} -.tsd-kind-constructor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -102px; -} - -.tsd-kind-constructor-signature > .tsd-kind-icon:before { - background-position: -136px -102px; -} -.tsd-kind-constructor-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; -} -.tsd-kind-constructor-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -102px; -} - -.tsd-kind-index-signature > .tsd-kind-icon:before { - background-position: -136px -119px; -} -.tsd-kind-index-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -119px; -} -.tsd-kind-index-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -119px; -} - -.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -136px; -} -.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -136px; -} -.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -136px; -} -.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -136px; -} - -.tsd-is-static > .tsd-kind-icon:before { - background-position: -136px -153px; -} -.tsd-is-static.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -153px; -} -.tsd-is-static.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -153px; -} -.tsd-is-static.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -153px; -} -.tsd-is-static.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -153px; -} -.tsd-is-static.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -153px; -} - -.tsd-is-static.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class - > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum - > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -187px; -} diff --git a/docs/assets/icons.png b/docs/assets/icons.png deleted file mode 100644 index 3836d5fe..00000000 Binary files a/docs/assets/icons.png and /dev/null differ diff --git a/docs/assets/icons@2x.png b/docs/assets/icons@2x.png deleted file mode 100644 index 5a209e2f..00000000 Binary files a/docs/assets/icons@2x.png and /dev/null differ diff --git a/docs/assets/main.js b/docs/assets/main.js index 61009a4b..abd0485a 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -1,5 +1,7 @@ -(()=>{var Ce=Object.create;var J=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var Me=t=>J(t,"__esModule",{value:!0});var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Oe(e))!_e.call(t,n)&&n!=="default"&&J(t,n,{get:()=>e[n],enumerable:!(r=Pe(e,n))||r.enumerable});return t},Ae=t=>De(Me(J(t!=null?Ce(Re(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var de=Fe((ue,he)=>{(function(){var t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),n=Object.keys(e),i=0;i0){var h=t.utils.clone(r)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(n.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(n){var i=t.Pipeline.registeredFunctions[n];if(i)r.add(i);else throw new Error("Cannot load unregistered function: "+n)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n=n+1,this._stack.splice(n,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,n=0;n1&&(oe&&(n=s),o!=e);)i=n-r,s=r+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(oc?h+=2:a==c&&(r+=n[l+1]*i[h+1],l+=2,h+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,n=0;r0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var c=s.node.edges["*"];else{var c=new t.TokenSet;s.node.edges["*"]=c}if(s.str.length==0&&(c.final=!0),i.push({node:c,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),f=s.str.charAt(1),v;f in s.node.edges?v=s.node.edges[f]:(v=new t.TokenSet,s.node.edges[f]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return n},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,n=r,i=0,s=e.length;i=e;r--){var n=this.uncheckedNodes[r],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){var n=new t.QueryParser(e,r);n.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),c=0;c1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=r||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(r=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(r=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(r=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(n+=" with value '"+r.str+"'"),new t.QueryParseError(n,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(n,r.start,r.end)}var i=e.peekLexeme();if(i==null){var n="expecting term or field, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var n=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+r.str+"', possible fields: "+n;throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(n==null){e.nextClause();return}switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.editDistance=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="boost must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.boost=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof ue=="object"?he.exports=r():e.lunr=r()}(this,function(){return t})})()});var le=[];function N(t,e){le.push({selector:e,constructor:t})}var X=class{constructor(){this.createComponents(document.body)}createComponents(e){le.forEach(r=>{e.querySelectorAll(r.selector).forEach(n=>{n.dataset.hasInstance||(new r.constructor({el:n}),n.dataset.hasInstance=String(!0))})})}};var Q=class{constructor(e){this.el=e.el}};var Z=class{constructor(){this.listeners={}}addEventListener(e,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(r)}removeEventListener(e,r){if(!(e in this.listeners))return;let n=this.listeners[e];for(let i=0,s=n.length;i{let r=Date.now();return(...n)=>{r+e-Date.now()<0&&(t(...n),r=Date.now())}};var ee=class extends Z{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.secondaryNav=document.querySelector(".tsd-navigation.secondary"),window.addEventListener("scroll",K(()=>this.onScroll(),10)),window.addEventListener("resize",K(()=>this.onResize(),10)),this.onResize(),this.onScroll()}triggerResize(){let e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onScroll(){this.scrollTop=window.scrollY||0;let e=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(e),this.hideShowToolbar()}hideShowToolbar(){var r;let e=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0,e!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),(r=this.secondaryNav)==null||r.classList.toggle("tsd-navigation--toolbar-hide")),this.lastY=this.scrollTop}},I=ee;I.instance=new ee;var te=class extends Q{constructor(e){super(e);this.anchors=[];this.index=-1;I.instance.addEventListener("resize",()=>this.onResize()),I.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let e=window.location.href;e.indexOf("#")!=-1&&(e=e.substr(0,e.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let n=r.href;if(n.indexOf("#")==-1||n.substr(0,e.length)!=e)return;let i=n.substr(n.indexOf("#")+1),s=document.querySelector("a.tsd-anchor[name="+i+"]"),o=r.parentNode;!s||!o||this.anchors.push({link:o,anchor:s,position:0})}),this.onResize()}onResize(){let e;for(let n=0,i=this.anchors.length;nn.position-i.position);let r=new CustomEvent("scroll",{detail:{scrollTop:I.instance.scrollTop}});this.onScroll(r)}onScroll(e){let r=e.detail.scrollTop+5,n=this.anchors,i=n.length-1,s=this.index;for(;s>-1&&n[s].position>r;)s-=1;for(;s-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=s,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ce=(t,e=100)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>t(n),e)}};var pe=Ae(de());function fe(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let r=document.querySelector("#tsd-search input"),n=document.querySelector("#tsd-search .results");if(!r||!n)throw new Error("The input field or the result list wrapper was not found");let i=!1;n.addEventListener("mousedown",()=>i=!0),n.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Ve(t,n,r,s)}function Ve(t,e,r,n){r.addEventListener("input",ce(()=>{ze(t,e,r,n)},200));let i=!1;r.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(e,r):s.key=="Escape"?r.blur():s.key=="ArrowUp"?me(e,-1):s.key==="ArrowDown"?me(e,1):i=!1}),r.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!r.matches(":focus")&&s.key==="/"&&(r.focus(),s.preventDefault())})}function He(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=pe.Index.load(window.searchData.index))}function ze(t,e,r,n){if(He(n,t),!n.index||!n.data)return;e.textContent="";let i=r.value.trim(),s=n.index.search(`*${i}*`);for(let o=0,a=Math.min(10,s.length);o${ve(c.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=c.classes;let f=document.createElement("a");f.href=n.base+c.url,f.classList.add("tsd-kind-icon"),f.innerHTML=l,h.append(f),e.appendChild(h)}}function me(t,e){let r=t.querySelector(".current");if(!r)r=t.querySelector(e==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let n=r;if(e===1)do n=n.nextElementSibling;while(n instanceof HTMLElement&&n.offsetParent==null);else do n=n.previousElementSibling;while(n instanceof HTMLElement&&n.offsetParent==null);n&&(r.classList.remove("current"),n.classList.add("current"))}}function Ne(t,e){let r=t.querySelector(".current");if(r||(r=t.querySelector("li:first-child")),r){let n=r.querySelector("a");n&&(window.location.href=n.href),e.blur()}}function ve(t,e){if(e==="")return t;let r=t.toLocaleLowerCase(),n=e.toLocaleLowerCase(),i=[],s=0,o=r.indexOf(n);for(;o!=-1;)i.push(re(t.substring(s,o)),`${re(t.substring(o,o+n.length))}`),s=o+n.length,o=r.indexOf(n,s);return i.push(re(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function re(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var ge=class{constructor(e,r){this.signature=e,this.description=r}addClass(e){return this.signature.classList.add(e),this.description.classList.add(e),this}removeClass(e){return this.signature.classList.remove(e),this.description.classList.remove(e),this}},ne=class extends Q{constructor(e){super(e);this.groups=[];this.index=-1;this.createGroups(),this.container&&(this.el.classList.add("active"),Array.from(this.el.children).forEach(r=>{r.addEventListener("touchstart",n=>this.onClick(n)),r.addEventListener("click",n=>this.onClick(n))}),this.container.classList.add("active"),this.setIndex(0))}setIndex(e){if(e<0&&(e=0),e>this.groups.length-1&&(e=this.groups.length-1),this.index==e)return;let r=this.groups[e];if(this.index>-1){let n=this.groups[this.index];n.removeClass("current").addClass("fade-out"),r.addClass("current"),r.addClass("fade-in"),I.instance.triggerResize(),setTimeout(()=>{n.removeClass("fade-out"),r.removeClass("fade-in")},300)}else r.addClass("current"),I.instance.triggerResize();this.index=e}createGroups(){let e=this.el.children;if(e.length<2)return;this.container=this.el.nextElementSibling;let r=this.container.children;this.groups=[];for(let n=0;n{r.signature===e.currentTarget&&this.setIndex(n)})}};var C="mousedown",ye="mousemove",_="mouseup",G={x:0,y:0},xe=!1,ie=!1,Be=!1,A=!1,Le=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(Le?"is-mobile":"not-mobile");Le&&"ontouchstart"in document.documentElement&&(Be=!0,C="touchstart",ye="touchmove",_="touchend");document.addEventListener(C,t=>{ie=!0,A=!1;let e=C=="touchstart"?t.targetTouches[0]:t;G.y=e.pageY||0,G.x=e.pageX||0});document.addEventListener(ye,t=>{if(!!ie&&!A){let e=C=="touchstart"?t.targetTouches[0]:t,r=G.x-(e.pageX||0),n=G.y-(e.pageY||0);A=Math.sqrt(r*r+n*n)>10}});document.addEventListener(_,()=>{ie=!1});document.addEventListener("click",t=>{xe&&(t.preventDefault(),t.stopImmediatePropagation(),xe=!1)});var se=class extends Q{constructor(e){super(e);this.className=this.el.dataset.toggle||"",this.el.addEventListener(_,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(C,r=>this.onDocumentPointerDown(r)),document.addEventListener(_,r=>this.onDocumentPointerUp(r))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(e){A||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!A&&this.active&&e.target.closest(".col-menu")){let r=e.target.closest("a");if(r){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substr(0,n.indexOf("#"))),r.href.substr(0,n.length)==n&&setTimeout(()=>this.setActive(!1),250)}}}};var oe=class{constructor(e,r){this.key=e,this.value=r,this.defaultValue=r,this.initialize(),window.localStorage[this.key]&&this.setValue(this.fromLocalStorage(window.localStorage[this.key]))}initialize(){}setValue(e){if(this.value==e)return;let r=this.value;this.value=e,window.localStorage[this.key]=this.toLocalStorage(e),this.handleValueChange(r,e)}},ae=class extends oe{initialize(){let e=document.querySelector("#tsd-filter-"+this.key);!e||(this.checkbox=e,this.checkbox.addEventListener("change",()=>{this.setValue(this.checkbox.checked)}))}handleValueChange(e,r){!this.checkbox||(this.checkbox.checked=this.value,document.documentElement.classList.toggle("toggle-"+this.key,this.value!=this.defaultValue))}fromLocalStorage(e){return e=="true"}toLocalStorage(e){return e?"true":"false"}},Ee=class extends oe{initialize(){document.documentElement.classList.add("toggle-"+this.key+this.value);let e=document.querySelector("#tsd-filter-"+this.key);if(!e)return;this.select=e;let r=()=>{this.select.classList.add("active")},n=()=>{this.select.classList.remove("active")};this.select.addEventListener(C,r),this.select.addEventListener("mouseover",r),this.select.addEventListener("mouseleave",n),this.select.querySelectorAll("li").forEach(i=>{i.addEventListener(_,s=>{e.classList.remove("active"),this.setValue(s.target.dataset.value||"")})}),document.addEventListener(C,i=>{this.select.contains(i.target)||this.select.classList.remove("active")})}handleValueChange(e,r){this.select.querySelectorAll("li.selected").forEach(s=>{s.classList.remove("selected")});let n=this.select.querySelector('li[data-value="'+r+'"]'),i=this.select.querySelector(".tsd-select-label");n&&i&&(n.classList.add("selected"),i.textContent=n.textContent),document.documentElement.classList.remove("toggle-"+e),document.documentElement.classList.add("toggle-"+r)}fromLocalStorage(e){return e}toLocalStorage(e){return e}},Y=class extends Q{constructor(e){super(e);this.optionVisibility=new Ee("visibility","private"),this.optionInherited=new ae("inherited",!0),this.optionExternals=new ae("externals",!0)}static isSupported(){try{return typeof window.localStorage!="undefined"}catch{return!1}}};function be(t){let e=localStorage.getItem("tsd-theme")||"os";t.value=e,we(e),t.addEventListener("change",()=>{localStorage.setItem("tsd-theme",t.value),we(t.value)})}function we(t){switch(t){case"os":document.body.classList.remove("light","dark");break;case"light":document.body.classList.remove("dark"),document.body.classList.add("light");break;case"dark":document.body.classList.remove("light"),document.body.classList.add("dark");break}}fe();N(te,".menu-highlight");N(ne,".tsd-signatures");N(se,"a[data-toggle]");Y.isSupported()?N(Y,"#tsd-filter"):document.documentElement.classList.add("no-filter");var Te=document.getElementById("theme");Te&&be(Te);var qe=new X;Object.defineProperty(window,"app",{value:qe});})(); +"use strict"; +"use strict";(()=>{var Qe=Object.create;var ae=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Me=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ce(e))!Re.call(t,i)&&i!==n&&ae(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Qe(Oe(t)):{},Me(e||!t||!t.__esModule?ae(n,"default",{value:t,enumerable:!0}):n,t));var de=_e((ce,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),v;m in s.node.edges?v=s.node.edges[m]:(v=new t.TokenSet,s.node.edges[m]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ce=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});var le=[];function j(t,e){le.push({selector:e,constructor:t})}var Y=class{constructor(){this.createComponents(document.body)}createComponents(e){le.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r}),r.dataset.hasInstance=String(!0))})})}};var k=class{constructor(e){this.el=e.el}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var re=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",ne(()=>this.onScroll(),10)),window.addEventListener("resize",ne(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},R=re;R.instance=new re;var X=class extends k{constructor(n){super(n);this.anchors=[];this.index=-1;R.instance.addEventListener("resize",()=>this.onResize()),R.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:R.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>t(r),e)}};var me=De(de());function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Fe(t,r,n,s)}function Fe(t,e,n,r){n.addEventListener("input",ue(()=>{Ae(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?fe(e,-1):s.key==="ArrowDown"?fe(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function He(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=me.Index.load(window.searchData.index))}function Ae(t,e,n,r){if(He(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${pe(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function fe(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function pe(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ie(t.substring(s,o)),`${ie(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ie(t.substring(s))),i.join("")}var Ne={"&":"&","<":"<",">":">","'":"'",'"':"""};function ie(t){return t.replace(/[&<>"'"]/g,e=>Ne[e])}var F="mousedown",ye="mousemove",B="mouseup",Z={x:0,y:0},ge=!1,se=!1,je=!1,H=!1,xe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(xe?"is-mobile":"not-mobile");xe&&"ontouchstart"in document.documentElement&&(je=!0,F="touchstart",ye="touchmove",B="touchend");document.addEventListener(F,t=>{se=!0,H=!1;let e=F=="touchstart"?t.targetTouches[0]:t;Z.y=e.pageY||0,Z.x=e.pageX||0});document.addEventListener(ye,t=>{if(!!se&&!H){let e=F=="touchstart"?t.targetTouches[0]:t,n=Z.x-(e.pageX||0),r=Z.y-(e.pageY||0);H=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{se=!1});document.addEventListener("click",t=>{ge&&(t.preventDefault(),t.stopImmediatePropagation(),ge=!1)});var K=class extends k{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){H||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!H&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var oe;try{oe=localStorage}catch{oe={getItem(){return null},setItem(){}}}var Q=oe;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var ee=class extends k{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var te=class extends k{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(Q.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function be(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,Ee(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),Ee(t.value)})}function Ee(t){document.documentElement.dataset.theme=t}ve();j(X,".menu-highlight");j(K,"a[data-toggle]");j(te,".tsd-index-accordion");j(ee,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("theme");Se&&be(Se);var Be=new Y;Object.defineProperty(window,"app",{value:Be});})(); /*! * lunr.Builder * Copyright (C) 2020 Oliver Nightingale diff --git a/docs/assets/search.js b/docs/assets/search.js index 6e3bed8f..c1adaedc 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -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":"messageHandler","url":"interfaces/PoolOptions.html#messageHandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":11,"kind":1024,"name":"errorHandler","url":"interfaces/PoolOptions.html#errorHandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":12,"kind":1024,"name":"onlineHandler","url":"interfaces/PoolOptions.html#onlineHandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":13,"kind":1024,"name":"exitHandler","url":"interfaces/PoolOptions.html#exitHandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":14,"kind":1024,"name":"workerChoiceStrategy","url":"interfaces/PoolOptions.html#workerChoiceStrategy","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":15,"kind":1024,"name":"enableEvents","url":"interfaces/PoolOptions.html#enableEvents","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"PoolOptions"},{"id":16,"kind":128,"name":"DynamicClusterPool","url":"classes/DynamicClusterPool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":17,"kind":512,"name":"constructor","url":"classes/DynamicClusterPool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"DynamicClusterPool"},{"id":18,"kind":1024,"name":"max","url":"classes/DynamicClusterPool.html#max","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":19,"kind":262144,"name":"type","url":"classes/DynamicClusterPool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"DynamicClusterPool"},{"id":20,"kind":262144,"name":"busy","url":"classes/DynamicClusterPool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"DynamicClusterPool"},{"id":21,"kind":1024,"name":"opts","url":"classes/DynamicClusterPool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":22,"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":23,"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":24,"kind":2048,"name":"destroyWorker","url":"classes/DynamicClusterPool.html#destroyWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":25,"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":26,"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":27,"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":28,"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":29,"kind":1024,"name":"workers","url":"classes/DynamicClusterPool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":30,"kind":1024,"name":"tasks","url":"classes/DynamicClusterPool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":31,"kind":1024,"name":"emitter","url":"classes/DynamicClusterPool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":32,"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":33,"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":34,"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":35,"kind":1024,"name":"numberOfWorkers","url":"classes/DynamicClusterPool.html#numberOfWorkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":36,"kind":1024,"name":"filePath","url":"classes/DynamicClusterPool.html#filePath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":37,"kind":262144,"name":"numberOfRunningTasks","url":"classes/DynamicClusterPool.html#numberOfRunningTasks","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":38,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/DynamicClusterPool.html#setWorkerChoiceStrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":39,"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":40,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/DynamicClusterPool.html#findFreeTasksMapEntry","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":41,"kind":2048,"name":"execute","url":"classes/DynamicClusterPool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":42,"kind":2048,"name":"destroy","url":"classes/DynamicClusterPool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicClusterPool"},{"id":43,"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":44,"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":45,"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":46,"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":47,"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":48,"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":49,"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":50,"kind":128,"name":"FixedClusterPool","url":"classes/FixedClusterPool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":51,"kind":512,"name":"constructor","url":"classes/FixedClusterPool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"FixedClusterPool"},{"id":52,"kind":1024,"name":"opts","url":"classes/FixedClusterPool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":53,"kind":2048,"name":"setupHook","url":"classes/FixedClusterPool.html#setupHook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedClusterPool"},{"id":54,"kind":2048,"name":"isMain","url":"classes/FixedClusterPool.html#isMain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedClusterPool"},{"id":55,"kind":2048,"name":"destroyWorker","url":"classes/FixedClusterPool.html#destroyWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"FixedClusterPool"},{"id":56,"kind":2048,"name":"sendToWorker","url":"classes/FixedClusterPool.html#sendToWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedClusterPool"},{"id":57,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/FixedClusterPool.html#registerWorkerMessageListener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"FixedClusterPool"},{"id":58,"kind":2048,"name":"createWorker","url":"classes/FixedClusterPool.html#createWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedClusterPool"},{"id":59,"kind":2048,"name":"afterWorkerSetup","url":"classes/FixedClusterPool.html#afterWorkerSetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedClusterPool"},{"id":60,"kind":262144,"name":"type","url":"classes/FixedClusterPool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"FixedClusterPool"},{"id":61,"kind":262144,"name":"busy","url":"classes/FixedClusterPool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"FixedClusterPool"},{"id":62,"kind":1024,"name":"workers","url":"classes/FixedClusterPool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":63,"kind":1024,"name":"tasks","url":"classes/FixedClusterPool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":64,"kind":1024,"name":"emitter","url":"classes/FixedClusterPool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":65,"kind":1024,"name":"max","url":"classes/FixedClusterPool.html#max","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":66,"kind":1024,"name":"promiseMap","url":"classes/FixedClusterPool.html#promiseMap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":67,"kind":1024,"name":"nextMessageId","url":"classes/FixedClusterPool.html#nextMessageId","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":68,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/FixedClusterPool.html#workerChoiceStrategyContext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":69,"kind":1024,"name":"numberOfWorkers","url":"classes/FixedClusterPool.html#numberOfWorkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":70,"kind":1024,"name":"filePath","url":"classes/FixedClusterPool.html#filePath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":71,"kind":262144,"name":"numberOfRunningTasks","url":"classes/FixedClusterPool.html#numberOfRunningTasks","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":72,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/FixedClusterPool.html#setWorkerChoiceStrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":73,"kind":2048,"name":"internalGetBusyStatus","url":"classes/FixedClusterPool.html#internalGetBusyStatus","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":74,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/FixedClusterPool.html#findFreeTasksMapEntry","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":75,"kind":2048,"name":"execute","url":"classes/FixedClusterPool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":76,"kind":2048,"name":"destroy","url":"classes/FixedClusterPool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedClusterPool"},{"id":77,"kind":2048,"name":"increaseWorkersTask","url":"classes/FixedClusterPool.html#increaseWorkersTask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":78,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/FixedClusterPool.html#decreaseWorkersTasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":79,"kind":2048,"name":"removeWorker","url":"classes/FixedClusterPool.html#removeWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":80,"kind":2048,"name":"chooseWorker","url":"classes/FixedClusterPool.html#chooseWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":81,"kind":2048,"name":"internalExecute","url":"classes/FixedClusterPool.html#internalExecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":82,"kind":2048,"name":"createAndSetupWorker","url":"classes/FixedClusterPool.html#createAndSetupWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":83,"kind":2048,"name":"workerListener","url":"classes/FixedClusterPool.html#workerListener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedClusterPool"},{"id":84,"kind":256,"name":"ClusterPoolOptions","url":"interfaces/ClusterPoolOptions.html","classes":"tsd-kind-interface"},{"id":85,"kind":1024,"name":"env","url":"interfaces/ClusterPoolOptions.html#env","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"ClusterPoolOptions"},{"id":86,"kind":1024,"name":"messageHandler","url":"interfaces/ClusterPoolOptions.html#messageHandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":87,"kind":1024,"name":"errorHandler","url":"interfaces/ClusterPoolOptions.html#errorHandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":88,"kind":1024,"name":"onlineHandler","url":"interfaces/ClusterPoolOptions.html#onlineHandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":89,"kind":1024,"name":"exitHandler","url":"interfaces/ClusterPoolOptions.html#exitHandler","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":90,"kind":1024,"name":"workerChoiceStrategy","url":"interfaces/ClusterPoolOptions.html#workerChoiceStrategy","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":91,"kind":1024,"name":"enableEvents","url":"interfaces/ClusterPoolOptions.html#enableEvents","classes":"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited","parent":"ClusterPoolOptions"},{"id":92,"kind":256,"name":"IPool","url":"interfaces/IPool.html","classes":"tsd-kind-interface tsd-has-type-parameter"},{"id":93,"kind":2048,"name":"execute","url":"interfaces/IPool.html#execute","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":94,"kind":2048,"name":"destroy","url":"interfaces/IPool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":95,"kind":2048,"name":"setWorkerChoiceStrategy","url":"interfaces/IPool.html#setWorkerChoiceStrategy","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"IPool"},{"id":96,"kind":32,"name":"WorkerChoiceStrategies","url":"index.html#WorkerChoiceStrategies","classes":"tsd-kind-variable"},{"id":97,"kind":4194304,"name":"WorkerChoiceStrategy","url":"index.html#WorkerChoiceStrategy","classes":"tsd-kind-type-alias"},{"id":98,"kind":128,"name":"DynamicThreadPool","url":"classes/DynamicThreadPool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":99,"kind":512,"name":"constructor","url":"classes/DynamicThreadPool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"DynamicThreadPool"},{"id":100,"kind":1024,"name":"max","url":"classes/DynamicThreadPool.html#max","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":101,"kind":262144,"name":"type","url":"classes/DynamicThreadPool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"DynamicThreadPool"},{"id":102,"kind":262144,"name":"busy","url":"classes/DynamicThreadPool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"DynamicThreadPool"},{"id":103,"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":104,"kind":2048,"name":"destroyWorker","url":"classes/DynamicThreadPool.html#destroyWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":105,"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":106,"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":107,"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":108,"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":109,"kind":1024,"name":"workers","url":"classes/DynamicThreadPool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":110,"kind":1024,"name":"tasks","url":"classes/DynamicThreadPool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":111,"kind":1024,"name":"emitter","url":"classes/DynamicThreadPool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":112,"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":113,"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":114,"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":115,"kind":1024,"name":"numberOfWorkers","url":"classes/DynamicThreadPool.html#numberOfWorkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":116,"kind":1024,"name":"filePath","url":"classes/DynamicThreadPool.html#filePath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":117,"kind":1024,"name":"opts","url":"classes/DynamicThreadPool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":118,"kind":262144,"name":"numberOfRunningTasks","url":"classes/DynamicThreadPool.html#numberOfRunningTasks","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":119,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/DynamicThreadPool.html#setWorkerChoiceStrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":120,"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":121,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/DynamicThreadPool.html#findFreeTasksMapEntry","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":122,"kind":2048,"name":"execute","url":"classes/DynamicThreadPool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":123,"kind":2048,"name":"destroy","url":"classes/DynamicThreadPool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"DynamicThreadPool"},{"id":124,"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":125,"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":126,"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":127,"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":128,"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":129,"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":130,"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":131,"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":132,"kind":128,"name":"FixedThreadPool","url":"classes/FixedThreadPool.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":133,"kind":512,"name":"constructor","url":"classes/FixedThreadPool.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"FixedThreadPool"},{"id":134,"kind":2048,"name":"isMain","url":"classes/FixedThreadPool.html#isMain","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedThreadPool"},{"id":135,"kind":2048,"name":"destroyWorker","url":"classes/FixedThreadPool.html#destroyWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite","parent":"FixedThreadPool"},{"id":136,"kind":2048,"name":"sendToWorker","url":"classes/FixedThreadPool.html#sendToWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedThreadPool"},{"id":137,"kind":2048,"name":"registerWorkerMessageListener","url":"classes/FixedThreadPool.html#registerWorkerMessageListener","classes":"tsd-kind-method tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"FixedThreadPool"},{"id":138,"kind":2048,"name":"createWorker","url":"classes/FixedThreadPool.html#createWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedThreadPool"},{"id":139,"kind":2048,"name":"afterWorkerSetup","url":"classes/FixedThreadPool.html#afterWorkerSetup","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected","parent":"FixedThreadPool"},{"id":140,"kind":262144,"name":"type","url":"classes/FixedThreadPool.html#type","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"FixedThreadPool"},{"id":141,"kind":262144,"name":"busy","url":"classes/FixedThreadPool.html#busy","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-overwrite","parent":"FixedThreadPool"},{"id":142,"kind":1024,"name":"workers","url":"classes/FixedThreadPool.html#workers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":143,"kind":1024,"name":"tasks","url":"classes/FixedThreadPool.html#tasks","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":144,"kind":1024,"name":"emitter","url":"classes/FixedThreadPool.html#emitter","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":145,"kind":1024,"name":"max","url":"classes/FixedThreadPool.html#max","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":146,"kind":1024,"name":"promiseMap","url":"classes/FixedThreadPool.html#promiseMap","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":147,"kind":1024,"name":"nextMessageId","url":"classes/FixedThreadPool.html#nextMessageId","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":148,"kind":1024,"name":"workerChoiceStrategyContext","url":"classes/FixedThreadPool.html#workerChoiceStrategyContext","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":149,"kind":1024,"name":"numberOfWorkers","url":"classes/FixedThreadPool.html#numberOfWorkers","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":150,"kind":1024,"name":"filePath","url":"classes/FixedThreadPool.html#filePath","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":151,"kind":1024,"name":"opts","url":"classes/FixedThreadPool.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":152,"kind":262144,"name":"numberOfRunningTasks","url":"classes/FixedThreadPool.html#numberOfRunningTasks","classes":"tsd-kind-get-signature tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":153,"kind":2048,"name":"setWorkerChoiceStrategy","url":"classes/FixedThreadPool.html#setWorkerChoiceStrategy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":154,"kind":2048,"name":"internalGetBusyStatus","url":"classes/FixedThreadPool.html#internalGetBusyStatus","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":155,"kind":2048,"name":"findFreeTasksMapEntry","url":"classes/FixedThreadPool.html#findFreeTasksMapEntry","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":156,"kind":2048,"name":"execute","url":"classes/FixedThreadPool.html#execute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":157,"kind":2048,"name":"destroy","url":"classes/FixedThreadPool.html#destroy","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited","parent":"FixedThreadPool"},{"id":158,"kind":2048,"name":"setupHook","url":"classes/FixedThreadPool.html#setupHook","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":159,"kind":2048,"name":"increaseWorkersTask","url":"classes/FixedThreadPool.html#increaseWorkersTask","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":160,"kind":2048,"name":"decreaseWorkersTasks","url":"classes/FixedThreadPool.html#decreaseWorkersTasks","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":161,"kind":2048,"name":"removeWorker","url":"classes/FixedThreadPool.html#removeWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":162,"kind":2048,"name":"chooseWorker","url":"classes/FixedThreadPool.html#chooseWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":163,"kind":2048,"name":"internalExecute","url":"classes/FixedThreadPool.html#internalExecute","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":164,"kind":2048,"name":"createAndSetupWorker","url":"classes/FixedThreadPool.html#createAndSetupWorker","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":165,"kind":2048,"name":"workerListener","url":"classes/FixedThreadPool.html#workerListener","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"FixedThreadPool"},{"id":166,"kind":4194304,"name":"ThreadWorkerWithMessageChannel","url":"index.html#ThreadWorkerWithMessageChannel","classes":"tsd-kind-type-alias"},{"id":167,"kind":128,"name":"AbstractWorker","url":"classes/AbstractWorker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":168,"kind":512,"name":"constructor","url":"classes/AbstractWorker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"AbstractWorker"},{"id":169,"kind":1024,"name":"lastTaskTimestamp","url":"classes/AbstractWorker.html#lastTaskTimestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":170,"kind":1024,"name":"aliveInterval","url":"classes/AbstractWorker.html#aliveInterval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":171,"kind":1024,"name":"mainWorker","url":"classes/AbstractWorker.html#mainWorker","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-protected","parent":"AbstractWorker"},{"id":172,"kind":1024,"name":"opts","url":"classes/AbstractWorker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class","parent":"AbstractWorker"},{"id":173,"kind":2048,"name":"checkWorkerOptions","url":"classes/AbstractWorker.html#checkWorkerOptions","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","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-overwrite","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":"lastTaskTimestamp","url":"classes/ClusterWorker.html#lastTaskTimestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":186,"kind":1024,"name":"aliveInterval","url":"classes/ClusterWorker.html#aliveInterval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ClusterWorker"},{"id":187,"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":188,"kind":1024,"name":"opts","url":"classes/ClusterWorker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ClusterWorker"},{"id":189,"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":190,"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":191,"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":192,"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":193,"kind":128,"name":"ThreadWorker","url":"classes/ThreadWorker.html","classes":"tsd-kind-class tsd-has-type-parameter"},{"id":194,"kind":512,"name":"constructor","url":"classes/ThreadWorker.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class tsd-has-type-parameter tsd-is-overwrite","parent":"ThreadWorker"},{"id":195,"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":196,"kind":1024,"name":"lastTaskTimestamp","url":"classes/ThreadWorker.html#lastTaskTimestamp","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":197,"kind":1024,"name":"aliveInterval","url":"classes/ThreadWorker.html#aliveInterval","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected","parent":"ThreadWorker"},{"id":198,"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":199,"kind":1024,"name":"opts","url":"classes/ThreadWorker.html#opts","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-inherited","parent":"ThreadWorker"},{"id":200,"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":201,"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":202,"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":203,"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":204,"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":205,"kind":32,"name":"KillBehaviors","url":"index.html#KillBehaviors","classes":"tsd-kind-variable"},{"id":206,"kind":4194304,"name":"KillBehavior","url":"index.html#KillBehavior","classes":"tsd-kind-type-alias"},{"id":207,"kind":256,"name":"WorkerOptions","url":"interfaces/WorkerOptions.html","classes":"tsd-kind-interface"},{"id":208,"kind":1024,"name":"maxInactiveTime","url":"interfaces/WorkerOptions.html#maxInactiveTime","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"},{"id":209,"kind":1024,"name":"async","url":"interfaces/WorkerOptions.html#async","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WorkerOptions"},{"id":210,"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.525]],["parent/0",[]],["name/1",[1,41.038]],["parent/1",[0,3.694]],["name/2",[2,38.525]],["parent/2",[]],["name/3",[1,41.038]],["parent/3",[2,3.694]],["name/4",[3,41.038]],["parent/4",[]],["name/5",[4,49.511]],["parent/5",[3,3.935]],["name/6",[5,49.511]],["parent/6",[3,3.935]],["name/7",[6,38.525]],["parent/7",[]],["name/8",[1,41.038]],["parent/8",[6,3.694]],["name/9",[7,33.417]],["parent/9",[]],["name/10",[8,44.403]],["parent/10",[7,3.204]],["name/11",[0,38.525]],["parent/11",[7,3.204]],["name/12",[6,38.525]],["parent/12",[7,3.204]],["name/13",[2,38.525]],["parent/13",[7,3.204]],["name/14",[9,41.038]],["parent/14",[7,3.204]],["name/15",[10,44.403]],["parent/15",[7,3.204]],["name/16",[11,18.156]],["parent/16",[]],["name/17",[12,33.417]],["parent/17",[11,1.741]],["name/18",[13,38.525]],["parent/18",[11,1.741]],["name/19",[14,38.525]],["parent/19",[11,1.741]],["name/20",[15,38.525]],["parent/20",[11,1.741]],["name/21",[16,33.417]],["parent/21",[11,1.741]],["name/22",[17,38.525]],["parent/22",[11,1.741]],["name/23",[18,38.525]],["parent/23",[11,1.741]],["name/24",[19,38.525]],["parent/24",[11,1.741]],["name/25",[20,38.525]],["parent/25",[11,1.741]],["name/26",[21,38.525]],["parent/26",[11,1.741]],["name/27",[22,38.525]],["parent/27",[11,1.741]],["name/28",[23,38.525]],["parent/28",[11,1.741]],["name/29",[24,38.525]],["parent/29",[11,1.741]],["name/30",[25,38.525]],["parent/30",[11,1.741]],["name/31",[26,38.525]],["parent/31",[11,1.741]],["name/32",[27,38.525]],["parent/32",[11,1.741]],["name/33",[28,38.525]],["parent/33",[11,1.741]],["name/34",[29,38.525]],["parent/34",[11,1.741]],["name/35",[30,38.525]],["parent/35",[11,1.741]],["name/36",[31,38.525]],["parent/36",[11,1.741]],["name/37",[32,38.525]],["parent/37",[11,1.741]],["name/38",[33,36.518]],["parent/38",[11,1.741]],["name/39",[34,38.525]],["parent/39",[11,1.741]],["name/40",[35,38.525]],["parent/40",[11,1.741]],["name/41",[36,36.518]],["parent/41",[11,1.741]],["name/42",[37,36.518]],["parent/42",[11,1.741]],["name/43",[38,38.525]],["parent/43",[11,1.741]],["name/44",[39,38.525]],["parent/44",[11,1.741]],["name/45",[40,38.525]],["parent/45",[11,1.741]],["name/46",[41,38.525]],["parent/46",[11,1.741]],["name/47",[42,38.525]],["parent/47",[11,1.741]],["name/48",[43,38.525]],["parent/48",[11,1.741]],["name/49",[44,38.525]],["parent/49",[11,1.741]],["name/50",[45,18.156]],["parent/50",[]],["name/51",[12,33.417]],["parent/51",[45,1.741]],["name/52",[16,33.417]],["parent/52",[45,1.741]],["name/53",[17,38.525]],["parent/53",[45,1.741]],["name/54",[18,38.525]],["parent/54",[45,1.741]],["name/55",[19,38.525]],["parent/55",[45,1.741]],["name/56",[20,38.525]],["parent/56",[45,1.741]],["name/57",[21,38.525]],["parent/57",[45,1.741]],["name/58",[22,38.525]],["parent/58",[45,1.741]],["name/59",[23,38.525]],["parent/59",[45,1.741]],["name/60",[14,38.525]],["parent/60",[45,1.741]],["name/61",[15,38.525]],["parent/61",[45,1.741]],["name/62",[24,38.525]],["parent/62",[45,1.741]],["name/63",[25,38.525]],["parent/63",[45,1.741]],["name/64",[26,38.525]],["parent/64",[45,1.741]],["name/65",[13,38.525]],["parent/65",[45,1.741]],["name/66",[27,38.525]],["parent/66",[45,1.741]],["name/67",[28,38.525]],["parent/67",[45,1.741]],["name/68",[29,38.525]],["parent/68",[45,1.741]],["name/69",[30,38.525]],["parent/69",[45,1.741]],["name/70",[31,38.525]],["parent/70",[45,1.741]],["name/71",[32,38.525]],["parent/71",[45,1.741]],["name/72",[33,36.518]],["parent/72",[45,1.741]],["name/73",[34,38.525]],["parent/73",[45,1.741]],["name/74",[35,38.525]],["parent/74",[45,1.741]],["name/75",[36,36.518]],["parent/75",[45,1.741]],["name/76",[37,36.518]],["parent/76",[45,1.741]],["name/77",[38,38.525]],["parent/77",[45,1.741]],["name/78",[39,38.525]],["parent/78",[45,1.741]],["name/79",[40,38.525]],["parent/79",[45,1.741]],["name/80",[41,38.525]],["parent/80",[45,1.741]],["name/81",[42,38.525]],["parent/81",[45,1.741]],["name/82",[43,38.525]],["parent/82",[45,1.741]],["name/83",[44,38.525]],["parent/83",[45,1.741]],["name/84",[46,32.165]],["parent/84",[]],["name/85",[47,49.511]],["parent/85",[46,3.084]],["name/86",[8,44.403]],["parent/86",[46,3.084]],["name/87",[0,38.525]],["parent/87",[46,3.084]],["name/88",[6,38.525]],["parent/88",[46,3.084]],["name/89",[2,38.525]],["parent/89",[46,3.084]],["name/90",[9,41.038]],["parent/90",[46,3.084]],["name/91",[10,44.403]],["parent/91",[46,3.084]],["name/92",[48,38.525]],["parent/92",[]],["name/93",[36,36.518]],["parent/93",[48,3.694]],["name/94",[37,36.518]],["parent/94",[48,3.694]],["name/95",[33,36.518]],["parent/95",[48,3.694]],["name/96",[49,49.511]],["parent/96",[]],["name/97",[9,41.038]],["parent/97",[]],["name/98",[50,18.156]],["parent/98",[]],["name/99",[12,33.417]],["parent/99",[50,1.741]],["name/100",[13,38.525]],["parent/100",[50,1.741]],["name/101",[14,38.525]],["parent/101",[50,1.741]],["name/102",[15,38.525]],["parent/102",[50,1.741]],["name/103",[18,38.525]],["parent/103",[50,1.741]],["name/104",[19,38.525]],["parent/104",[50,1.741]],["name/105",[20,38.525]],["parent/105",[50,1.741]],["name/106",[21,38.525]],["parent/106",[50,1.741]],["name/107",[22,38.525]],["parent/107",[50,1.741]],["name/108",[23,38.525]],["parent/108",[50,1.741]],["name/109",[24,38.525]],["parent/109",[50,1.741]],["name/110",[25,38.525]],["parent/110",[50,1.741]],["name/111",[26,38.525]],["parent/111",[50,1.741]],["name/112",[27,38.525]],["parent/112",[50,1.741]],["name/113",[28,38.525]],["parent/113",[50,1.741]],["name/114",[29,38.525]],["parent/114",[50,1.741]],["name/115",[30,38.525]],["parent/115",[50,1.741]],["name/116",[31,38.525]],["parent/116",[50,1.741]],["name/117",[16,33.417]],["parent/117",[50,1.741]],["name/118",[32,38.525]],["parent/118",[50,1.741]],["name/119",[33,36.518]],["parent/119",[50,1.741]],["name/120",[34,38.525]],["parent/120",[50,1.741]],["name/121",[35,38.525]],["parent/121",[50,1.741]],["name/122",[36,36.518]],["parent/122",[50,1.741]],["name/123",[37,36.518]],["parent/123",[50,1.741]],["name/124",[17,38.525]],["parent/124",[50,1.741]],["name/125",[38,38.525]],["parent/125",[50,1.741]],["name/126",[39,38.525]],["parent/126",[50,1.741]],["name/127",[40,38.525]],["parent/127",[50,1.741]],["name/128",[41,38.525]],["parent/128",[50,1.741]],["name/129",[42,38.525]],["parent/129",[50,1.741]],["name/130",[43,38.525]],["parent/130",[50,1.741]],["name/131",[44,38.525]],["parent/131",[50,1.741]],["name/132",[51,18.156]],["parent/132",[]],["name/133",[12,33.417]],["parent/133",[51,1.741]],["name/134",[18,38.525]],["parent/134",[51,1.741]],["name/135",[19,38.525]],["parent/135",[51,1.741]],["name/136",[20,38.525]],["parent/136",[51,1.741]],["name/137",[21,38.525]],["parent/137",[51,1.741]],["name/138",[22,38.525]],["parent/138",[51,1.741]],["name/139",[23,38.525]],["parent/139",[51,1.741]],["name/140",[14,38.525]],["parent/140",[51,1.741]],["name/141",[15,38.525]],["parent/141",[51,1.741]],["name/142",[24,38.525]],["parent/142",[51,1.741]],["name/143",[25,38.525]],["parent/143",[51,1.741]],["name/144",[26,38.525]],["parent/144",[51,1.741]],["name/145",[13,38.525]],["parent/145",[51,1.741]],["name/146",[27,38.525]],["parent/146",[51,1.741]],["name/147",[28,38.525]],["parent/147",[51,1.741]],["name/148",[29,38.525]],["parent/148",[51,1.741]],["name/149",[30,38.525]],["parent/149",[51,1.741]],["name/150",[31,38.525]],["parent/150",[51,1.741]],["name/151",[16,33.417]],["parent/151",[51,1.741]],["name/152",[32,38.525]],["parent/152",[51,1.741]],["name/153",[33,36.518]],["parent/153",[51,1.741]],["name/154",[34,38.525]],["parent/154",[51,1.741]],["name/155",[35,38.525]],["parent/155",[51,1.741]],["name/156",[36,36.518]],["parent/156",[51,1.741]],["name/157",[37,36.518]],["parent/157",[51,1.741]],["name/158",[17,38.525]],["parent/158",[51,1.741]],["name/159",[38,38.525]],["parent/159",[51,1.741]],["name/160",[39,38.525]],["parent/160",[51,1.741]],["name/161",[40,38.525]],["parent/161",[51,1.741]],["name/162",[41,38.525]],["parent/162",[51,1.741]],["name/163",[42,38.525]],["parent/163",[51,1.741]],["name/164",[43,38.525]],["parent/164",[51,1.741]],["name/165",[44,38.525]],["parent/165",[51,1.741]],["name/166",[52,49.511]],["parent/166",[]],["name/167",[53,26.824]],["parent/167",[]],["name/168",[12,33.417]],["parent/168",[53,2.572]],["name/169",[54,41.038]],["parent/169",[53,2.572]],["name/170",[55,41.038]],["parent/170",[53,2.572]],["name/171",[56,41.038]],["parent/171",[53,2.572]],["name/172",[16,33.417]],["parent/172",[53,2.572]],["name/173",[57,49.511]],["parent/173",[53,2.572]],["name/174",[58,49.511]],["parent/174",[53,2.572]],["name/175",[59,41.038]],["parent/175",[53,2.572]],["name/176",[60,41.038]],["parent/176",[53,2.572]],["name/177",[61,41.038]],["parent/177",[53,2.572]],["name/178",[62,41.038]],["parent/178",[53,2.572]],["name/179",[63,41.038]],["parent/179",[53,2.572]],["name/180",[64,41.038]],["parent/180",[53,2.572]],["name/181",[65,28.309]],["parent/181",[]],["name/182",[12,33.417]],["parent/182",[65,2.715]],["name/183",[60,41.038]],["parent/183",[65,2.715]],["name/184",[62,41.038]],["parent/184",[65,2.715]],["name/185",[54,41.038]],["parent/185",[65,2.715]],["name/186",[55,41.038]],["parent/186",[65,2.715]],["name/187",[56,41.038]],["parent/187",[65,2.715]],["name/188",[16,33.417]],["parent/188",[65,2.715]],["name/189",[59,41.038]],["parent/189",[65,2.715]],["name/190",[61,41.038]],["parent/190",[65,2.715]],["name/191",[63,41.038]],["parent/191",[65,2.715]],["name/192",[64,41.038]],["parent/192",[65,2.715]],["name/193",[66,28.309]],["parent/193",[]],["name/194",[12,33.417]],["parent/194",[66,2.715]],["name/195",[60,41.038]],["parent/195",[66,2.715]],["name/196",[54,41.038]],["parent/196",[66,2.715]],["name/197",[55,41.038]],["parent/197",[66,2.715]],["name/198",[56,41.038]],["parent/198",[66,2.715]],["name/199",[16,33.417]],["parent/199",[66,2.715]],["name/200",[59,41.038]],["parent/200",[66,2.715]],["name/201",[61,41.038]],["parent/201",[66,2.715]],["name/202",[62,41.038]],["parent/202",[66,2.715]],["name/203",[63,41.038]],["parent/203",[66,2.715]],["name/204",[64,41.038]],["parent/204",[66,2.715]],["name/205",[67,49.511]],["parent/205",[]],["name/206",[68,44.403]],["parent/206",[]],["name/207",[69,38.525]],["parent/207",[]],["name/208",[70,49.511]],["parent/208",[69,3.694]],["name/209",[71,49.511]],["parent/209",[69,3.694]],["name/210",[68,44.403]],["parent/210",[69,3.694]]],"invertedIndex":[["__type",{"_index":1,"name":{"1":{},"3":{},"8":{}},"parent":{}}],["abstractworker",{"_index":53,"name":{"167":{}},"parent":{"168":{},"169":{},"170":{},"171":{},"172":{},"173":{},"174":{},"175":{},"176":{},"177":{},"178":{},"179":{},"180":{}}}],["afterworkersetup",{"_index":23,"name":{"28":{},"59":{},"108":{},"139":{}},"parent":{}}],["aliveinterval",{"_index":55,"name":{"170":{},"186":{},"197":{}},"parent":{}}],["async",{"_index":71,"name":{"209":{}},"parent":{}}],["busy",{"_index":15,"name":{"20":{},"61":{},"102":{},"141":{}},"parent":{}}],["checkalive",{"_index":61,"name":{"177":{},"190":{},"201":{}},"parent":{}}],["checkfunctioninput",{"_index":58,"name":{"174":{}},"parent":{}}],["checkworkeroptions",{"_index":57,"name":{"173":{}},"parent":{}}],["chooseworker",{"_index":41,"name":{"46":{},"80":{},"128":{},"162":{}},"parent":{}}],["clusterpooloptions",{"_index":46,"name":{"84":{}},"parent":{"85":{},"86":{},"87":{},"88":{},"89":{},"90":{},"91":{}}}],["clusterworker",{"_index":65,"name":{"181":{}},"parent":{"182":{},"183":{},"184":{},"185":{},"186":{},"187":{},"188":{},"189":{},"190":{},"191":{},"192":{}}}],["constructor",{"_index":12,"name":{"17":{},"51":{},"99":{},"133":{},"168":{},"182":{},"194":{}},"parent":{}}],["createandsetupworker",{"_index":43,"name":{"48":{},"82":{},"130":{},"164":{}},"parent":{}}],["createworker",{"_index":22,"name":{"27":{},"58":{},"107":{},"138":{}},"parent":{}}],["decreaseworkerstasks",{"_index":39,"name":{"44":{},"78":{},"126":{},"160":{}},"parent":{}}],["destroy",{"_index":37,"name":{"42":{},"76":{},"94":{},"123":{},"157":{}},"parent":{}}],["destroyworker",{"_index":19,"name":{"24":{},"55":{},"104":{},"135":{}},"parent":{}}],["dynamicclusterpool",{"_index":11,"name":{"16":{}},"parent":{"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":{},"49":{}}}],["dynamicthreadpool",{"_index":50,"name":{"98":{}},"parent":{"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":{},"130":{},"131":{}}}],["emitter",{"_index":26,"name":{"31":{},"64":{},"111":{},"144":{}},"parent":{}}],["enableevents",{"_index":10,"name":{"15":{},"91":{}},"parent":{}}],["env",{"_index":47,"name":{"85":{}},"parent":{}}],["errorhandler",{"_index":0,"name":{"0":{},"11":{},"87":{}},"parent":{"1":{}}}],["execute",{"_index":36,"name":{"41":{},"75":{},"93":{},"122":{},"156":{}},"parent":{}}],["exithandler",{"_index":2,"name":{"2":{},"13":{},"89":{}},"parent":{"3":{}}}],["filepath",{"_index":31,"name":{"36":{},"70":{},"116":{},"150":{}},"parent":{}}],["findfreetasksmapentry",{"_index":35,"name":{"40":{},"74":{},"121":{},"155":{}},"parent":{}}],["fixedclusterpool",{"_index":45,"name":{"50":{}},"parent":{"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":{},"83":{}}}],["fixedthreadpool",{"_index":51,"name":{"132":{}},"parent":{"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":{},"164":{},"165":{}}}],["getmainworker",{"_index":59,"name":{"175":{},"189":{},"200":{}},"parent":{}}],["handleerror",{"_index":62,"name":{"178":{},"184":{},"202":{}},"parent":{}}],["increaseworkerstask",{"_index":38,"name":{"43":{},"77":{},"125":{},"159":{}},"parent":{}}],["internalexecute",{"_index":42,"name":{"47":{},"81":{},"129":{},"163":{}},"parent":{}}],["internalgetbusystatus",{"_index":34,"name":{"39":{},"73":{},"120":{},"154":{}},"parent":{}}],["ipool",{"_index":48,"name":{"92":{}},"parent":{"93":{},"94":{},"95":{}}}],["ismain",{"_index":18,"name":{"23":{},"54":{},"103":{},"134":{}},"parent":{}}],["iworker",{"_index":3,"name":{"4":{}},"parent":{"5":{},"6":{}}}],["killbehavior",{"_index":68,"name":{"206":{},"210":{}},"parent":{}}],["killbehaviors",{"_index":67,"name":{"205":{}},"parent":{}}],["lasttasktimestamp",{"_index":54,"name":{"169":{},"185":{},"196":{}},"parent":{}}],["mainworker",{"_index":56,"name":{"171":{},"187":{},"198":{}},"parent":{}}],["max",{"_index":13,"name":{"18":{},"65":{},"100":{},"145":{}},"parent":{}}],["maxinactivetime",{"_index":70,"name":{"208":{}},"parent":{}}],["messagehandler",{"_index":8,"name":{"10":{},"86":{}},"parent":{}}],["nextmessageid",{"_index":28,"name":{"33":{},"67":{},"113":{},"147":{}},"parent":{}}],["numberofrunningtasks",{"_index":32,"name":{"37":{},"71":{},"118":{},"152":{}},"parent":{}}],["numberofworkers",{"_index":30,"name":{"35":{},"69":{},"115":{},"149":{}},"parent":{}}],["on",{"_index":4,"name":{"5":{}},"parent":{}}],["once",{"_index":5,"name":{"6":{}},"parent":{}}],["onlinehandler",{"_index":6,"name":{"7":{},"12":{},"88":{}},"parent":{"8":{}}}],["opts",{"_index":16,"name":{"21":{},"52":{},"117":{},"151":{},"172":{},"188":{},"199":{}},"parent":{}}],["pooloptions",{"_index":7,"name":{"9":{}},"parent":{"10":{},"11":{},"12":{},"13":{},"14":{},"15":{}}}],["promisemap",{"_index":27,"name":{"32":{},"66":{},"112":{},"146":{}},"parent":{}}],["registerworkermessagelistener",{"_index":21,"name":{"26":{},"57":{},"106":{},"137":{}},"parent":{}}],["removeworker",{"_index":40,"name":{"45":{},"79":{},"127":{},"161":{}},"parent":{}}],["run",{"_index":63,"name":{"179":{},"191":{},"203":{}},"parent":{}}],["runasync",{"_index":64,"name":{"180":{},"192":{},"204":{}},"parent":{}}],["sendtomainworker",{"_index":60,"name":{"176":{},"183":{},"195":{}},"parent":{}}],["sendtoworker",{"_index":20,"name":{"25":{},"56":{},"105":{},"136":{}},"parent":{}}],["setuphook",{"_index":17,"name":{"22":{},"53":{},"124":{},"158":{}},"parent":{}}],["setworkerchoicestrategy",{"_index":33,"name":{"38":{},"72":{},"95":{},"119":{},"153":{}},"parent":{}}],["tasks",{"_index":25,"name":{"30":{},"63":{},"110":{},"143":{}},"parent":{}}],["threadworker",{"_index":66,"name":{"193":{}},"parent":{"194":{},"195":{},"196":{},"197":{},"198":{},"199":{},"200":{},"201":{},"202":{},"203":{},"204":{}}}],["threadworkerwithmessagechannel",{"_index":52,"name":{"166":{}},"parent":{}}],["type",{"_index":14,"name":{"19":{},"60":{},"101":{},"140":{}},"parent":{}}],["workerchoicestrategies",{"_index":49,"name":{"96":{}},"parent":{}}],["workerchoicestrategy",{"_index":9,"name":{"14":{},"90":{},"97":{}},"parent":{}}],["workerchoicestrategycontext",{"_index":29,"name":{"34":{},"68":{},"114":{},"148":{}},"parent":{}}],["workerlistener",{"_index":44,"name":{"49":{},"83":{},"131":{},"165":{}},"parent":{}}],["workeroptions",{"_index":69,"name":{"207":{}},"parent":{"208":{},"209":{},"210":{}}}],["workers",{"_index":24,"name":{"29":{},"62":{},"109":{},"142":{}},"parent":{}}]],"pipeline":[]}} \ No newline at end of file +window.searchData = JSON.parse("{\"kinds\":{\"32\":\"Variable\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"262144\":\"Accessor\",\"4194304\":\"Type alias\"},\"rows\":[{\"kind\":128,\"name\":\"DynamicClusterPool\",\"url\":\"classes/DynamicClusterPool.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/DynamicClusterPool.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"max\",\"url\":\"classes/DynamicClusterPool.html#max\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":262144,\"name\":\"type\",\"url\":\"classes/DynamicClusterPool.html#type\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"DynamicClusterPool\"},{\"kind\":262144,\"name\":\"busy\",\"url\":\"classes/DynamicClusterPool.html#busy\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/DynamicClusterPool.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"setupHook\",\"url\":\"classes/DynamicClusterPool.html#setupHook\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"isMain\",\"url\":\"classes/DynamicClusterPool.html#isMain\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"destroyWorker\",\"url\":\"classes/DynamicClusterPool.html#destroyWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"sendToWorker\",\"url\":\"classes/DynamicClusterPool.html#sendToWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"registerWorkerMessageListener\",\"url\":\"classes/DynamicClusterPool.html#registerWorkerMessageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"createWorker\",\"url\":\"classes/DynamicClusterPool.html#createWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"afterWorkerSetup\",\"url\":\"classes/DynamicClusterPool.html#afterWorkerSetup\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"workers\",\"url\":\"classes/DynamicClusterPool.html#workers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"tasks\",\"url\":\"classes/DynamicClusterPool.html#tasks\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"emitter\",\"url\":\"classes/DynamicClusterPool.html#emitter\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"promiseMap\",\"url\":\"classes/DynamicClusterPool.html#promiseMap\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"nextMessageId\",\"url\":\"classes/DynamicClusterPool.html#nextMessageId\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"workerChoiceStrategyContext\",\"url\":\"classes/DynamicClusterPool.html#workerChoiceStrategyContext\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"numberOfWorkers\",\"url\":\"classes/DynamicClusterPool.html#numberOfWorkers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":1024,\"name\":\"filePath\",\"url\":\"classes/DynamicClusterPool.html#filePath\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":262144,\"name\":\"numberOfRunningTasks\",\"url\":\"classes/DynamicClusterPool.html#numberOfRunningTasks\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"getWorkerRunningTasks\",\"url\":\"classes/DynamicClusterPool.html#getWorkerRunningTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"getWorkerIndex\",\"url\":\"classes/DynamicClusterPool.html#getWorkerIndex\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"setWorkerChoiceStrategy\",\"url\":\"classes/DynamicClusterPool.html#setWorkerChoiceStrategy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"internalGetBusyStatus\",\"url\":\"classes/DynamicClusterPool.html#internalGetBusyStatus\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"findFreeWorker\",\"url\":\"classes/DynamicClusterPool.html#findFreeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"execute\",\"url\":\"classes/DynamicClusterPool.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"destroy\",\"url\":\"classes/DynamicClusterPool.html#destroy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"increaseWorkersTask\",\"url\":\"classes/DynamicClusterPool.html#increaseWorkersTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"decreaseWorkersTasks\",\"url\":\"classes/DynamicClusterPool.html#decreaseWorkersTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"removeWorker\",\"url\":\"classes/DynamicClusterPool.html#removeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"chooseWorker\",\"url\":\"classes/DynamicClusterPool.html#chooseWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"internalExecute\",\"url\":\"classes/DynamicClusterPool.html#internalExecute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"createAndSetupWorker\",\"url\":\"classes/DynamicClusterPool.html#createAndSetupWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":2048,\"name\":\"workerListener\",\"url\":\"classes/DynamicClusterPool.html#workerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicClusterPool\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/DynamicClusterPool.html#workerListener.workerListener-1.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"DynamicClusterPool.workerListener.workerListener\"},{\"kind\":128,\"name\":\"FixedClusterPool\",\"url\":\"classes/FixedClusterPool.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/FixedClusterPool.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/FixedClusterPool.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"setupHook\",\"url\":\"classes/FixedClusterPool.html#setupHook\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"isMain\",\"url\":\"classes/FixedClusterPool.html#isMain\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"destroyWorker\",\"url\":\"classes/FixedClusterPool.html#destroyWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"sendToWorker\",\"url\":\"classes/FixedClusterPool.html#sendToWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"registerWorkerMessageListener\",\"url\":\"classes/FixedClusterPool.html#registerWorkerMessageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"createWorker\",\"url\":\"classes/FixedClusterPool.html#createWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"afterWorkerSetup\",\"url\":\"classes/FixedClusterPool.html#afterWorkerSetup\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedClusterPool\"},{\"kind\":262144,\"name\":\"type\",\"url\":\"classes/FixedClusterPool.html#type\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"FixedClusterPool\"},{\"kind\":262144,\"name\":\"busy\",\"url\":\"classes/FixedClusterPool.html#busy\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"workers\",\"url\":\"classes/FixedClusterPool.html#workers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"tasks\",\"url\":\"classes/FixedClusterPool.html#tasks\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"emitter\",\"url\":\"classes/FixedClusterPool.html#emitter\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"max\",\"url\":\"classes/FixedClusterPool.html#max\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"promiseMap\",\"url\":\"classes/FixedClusterPool.html#promiseMap\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"nextMessageId\",\"url\":\"classes/FixedClusterPool.html#nextMessageId\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"workerChoiceStrategyContext\",\"url\":\"classes/FixedClusterPool.html#workerChoiceStrategyContext\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"numberOfWorkers\",\"url\":\"classes/FixedClusterPool.html#numberOfWorkers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":1024,\"name\":\"filePath\",\"url\":\"classes/FixedClusterPool.html#filePath\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":262144,\"name\":\"numberOfRunningTasks\",\"url\":\"classes/FixedClusterPool.html#numberOfRunningTasks\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"getWorkerRunningTasks\",\"url\":\"classes/FixedClusterPool.html#getWorkerRunningTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"getWorkerIndex\",\"url\":\"classes/FixedClusterPool.html#getWorkerIndex\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"setWorkerChoiceStrategy\",\"url\":\"classes/FixedClusterPool.html#setWorkerChoiceStrategy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"internalGetBusyStatus\",\"url\":\"classes/FixedClusterPool.html#internalGetBusyStatus\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"findFreeWorker\",\"url\":\"classes/FixedClusterPool.html#findFreeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"execute\",\"url\":\"classes/FixedClusterPool.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"destroy\",\"url\":\"classes/FixedClusterPool.html#destroy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"increaseWorkersTask\",\"url\":\"classes/FixedClusterPool.html#increaseWorkersTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"decreaseWorkersTasks\",\"url\":\"classes/FixedClusterPool.html#decreaseWorkersTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"removeWorker\",\"url\":\"classes/FixedClusterPool.html#removeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"chooseWorker\",\"url\":\"classes/FixedClusterPool.html#chooseWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"internalExecute\",\"url\":\"classes/FixedClusterPool.html#internalExecute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"createAndSetupWorker\",\"url\":\"classes/FixedClusterPool.html#createAndSetupWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":2048,\"name\":\"workerListener\",\"url\":\"classes/FixedClusterPool.html#workerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedClusterPool\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/FixedClusterPool.html#workerListener.workerListener-1.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"FixedClusterPool.workerListener.workerListener\"},{\"kind\":256,\"name\":\"ClusterPoolOptions\",\"url\":\"interfaces/ClusterPoolOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"env\",\"url\":\"interfaces/ClusterPoolOptions.html#env\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":1024,\"name\":\"messageHandler\",\"url\":\"interfaces/ClusterPoolOptions.html#messageHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":1024,\"name\":\"errorHandler\",\"url\":\"interfaces/ClusterPoolOptions.html#errorHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":1024,\"name\":\"onlineHandler\",\"url\":\"interfaces/ClusterPoolOptions.html#onlineHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":1024,\"name\":\"exitHandler\",\"url\":\"interfaces/ClusterPoolOptions.html#exitHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":1024,\"name\":\"workerChoiceStrategy\",\"url\":\"interfaces/ClusterPoolOptions.html#workerChoiceStrategy\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":1024,\"name\":\"enableEvents\",\"url\":\"interfaces/ClusterPoolOptions.html#enableEvents\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface tsd-is-inherited\",\"parent\":\"ClusterPoolOptions\"},{\"kind\":256,\"name\":\"IPool\",\"url\":\"interfaces/IPool.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":2048,\"name\":\"execute\",\"url\":\"interfaces/IPool.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"IPool\"},{\"kind\":2048,\"name\":\"destroy\",\"url\":\"interfaces/IPool.html#destroy\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"IPool\"},{\"kind\":2048,\"name\":\"setWorkerChoiceStrategy\",\"url\":\"interfaces/IPool.html#setWorkerChoiceStrategy\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"IPool\"},{\"kind\":256,\"name\":\"PoolOptions\",\"url\":\"interfaces/PoolOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"messageHandler\",\"url\":\"interfaces/PoolOptions.html#messageHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PoolOptions\"},{\"kind\":1024,\"name\":\"errorHandler\",\"url\":\"interfaces/PoolOptions.html#errorHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PoolOptions\"},{\"kind\":1024,\"name\":\"onlineHandler\",\"url\":\"interfaces/PoolOptions.html#onlineHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PoolOptions\"},{\"kind\":1024,\"name\":\"exitHandler\",\"url\":\"interfaces/PoolOptions.html#exitHandler\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PoolOptions\"},{\"kind\":1024,\"name\":\"workerChoiceStrategy\",\"url\":\"interfaces/PoolOptions.html#workerChoiceStrategy\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PoolOptions\"},{\"kind\":1024,\"name\":\"enableEvents\",\"url\":\"interfaces/PoolOptions.html#enableEvents\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"PoolOptions\"},{\"kind\":4194304,\"name\":\"ErrorHandler\",\"url\":\"types/ErrorHandler.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ErrorHandler.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ErrorHandler\"},{\"kind\":4194304,\"name\":\"ExitHandler\",\"url\":\"types/ExitHandler.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/ExitHandler.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"ExitHandler\"},{\"kind\":256,\"name\":\"IPoolWorker\",\"url\":\"interfaces/IPoolWorker.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"id\",\"url\":\"interfaces/IPoolWorker.html#id\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"IPoolWorker\"},{\"kind\":2048,\"name\":\"on\",\"url\":\"interfaces/IPoolWorker.html#on\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"IPoolWorker\"},{\"kind\":2048,\"name\":\"once\",\"url\":\"interfaces/IPoolWorker.html#once\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"IPoolWorker\"},{\"kind\":4194304,\"name\":\"OnlineHandler\",\"url\":\"types/OnlineHandler.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/OnlineHandler.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"OnlineHandler\"},{\"kind\":32,\"name\":\"WorkerChoiceStrategies\",\"url\":\"variables/WorkerChoiceStrategies.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":4194304,\"name\":\"WorkerChoiceStrategy\",\"url\":\"types/WorkerChoiceStrategy.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":128,\"name\":\"DynamicThreadPool\",\"url\":\"classes/DynamicThreadPool.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/DynamicThreadPool.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"max\",\"url\":\"classes/DynamicThreadPool.html#max\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":262144,\"name\":\"type\",\"url\":\"classes/DynamicThreadPool.html#type\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"DynamicThreadPool\"},{\"kind\":262144,\"name\":\"busy\",\"url\":\"classes/DynamicThreadPool.html#busy\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"isMain\",\"url\":\"classes/DynamicThreadPool.html#isMain\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"destroyWorker\",\"url\":\"classes/DynamicThreadPool.html#destroyWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"sendToWorker\",\"url\":\"classes/DynamicThreadPool.html#sendToWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"registerWorkerMessageListener\",\"url\":\"classes/DynamicThreadPool.html#registerWorkerMessageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"createWorker\",\"url\":\"classes/DynamicThreadPool.html#createWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"afterWorkerSetup\",\"url\":\"classes/DynamicThreadPool.html#afterWorkerSetup\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"workers\",\"url\":\"classes/DynamicThreadPool.html#workers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"tasks\",\"url\":\"classes/DynamicThreadPool.html#tasks\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"emitter\",\"url\":\"classes/DynamicThreadPool.html#emitter\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"promiseMap\",\"url\":\"classes/DynamicThreadPool.html#promiseMap\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"nextMessageId\",\"url\":\"classes/DynamicThreadPool.html#nextMessageId\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"workerChoiceStrategyContext\",\"url\":\"classes/DynamicThreadPool.html#workerChoiceStrategyContext\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"numberOfWorkers\",\"url\":\"classes/DynamicThreadPool.html#numberOfWorkers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"filePath\",\"url\":\"classes/DynamicThreadPool.html#filePath\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/DynamicThreadPool.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":262144,\"name\":\"numberOfRunningTasks\",\"url\":\"classes/DynamicThreadPool.html#numberOfRunningTasks\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"getWorkerRunningTasks\",\"url\":\"classes/DynamicThreadPool.html#getWorkerRunningTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"getWorkerIndex\",\"url\":\"classes/DynamicThreadPool.html#getWorkerIndex\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"setWorkerChoiceStrategy\",\"url\":\"classes/DynamicThreadPool.html#setWorkerChoiceStrategy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"internalGetBusyStatus\",\"url\":\"classes/DynamicThreadPool.html#internalGetBusyStatus\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"findFreeWorker\",\"url\":\"classes/DynamicThreadPool.html#findFreeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"execute\",\"url\":\"classes/DynamicThreadPool.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"destroy\",\"url\":\"classes/DynamicThreadPool.html#destroy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"setupHook\",\"url\":\"classes/DynamicThreadPool.html#setupHook\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"increaseWorkersTask\",\"url\":\"classes/DynamicThreadPool.html#increaseWorkersTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"decreaseWorkersTasks\",\"url\":\"classes/DynamicThreadPool.html#decreaseWorkersTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"removeWorker\",\"url\":\"classes/DynamicThreadPool.html#removeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"chooseWorker\",\"url\":\"classes/DynamicThreadPool.html#chooseWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"internalExecute\",\"url\":\"classes/DynamicThreadPool.html#internalExecute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"createAndSetupWorker\",\"url\":\"classes/DynamicThreadPool.html#createAndSetupWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":2048,\"name\":\"workerListener\",\"url\":\"classes/DynamicThreadPool.html#workerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"DynamicThreadPool\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/DynamicThreadPool.html#workerListener.workerListener-1.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"DynamicThreadPool.workerListener.workerListener\"},{\"kind\":128,\"name\":\"FixedThreadPool\",\"url\":\"classes/FixedThreadPool.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/FixedThreadPool.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"isMain\",\"url\":\"classes/FixedThreadPool.html#isMain\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"destroyWorker\",\"url\":\"classes/FixedThreadPool.html#destroyWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"sendToWorker\",\"url\":\"classes/FixedThreadPool.html#sendToWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"registerWorkerMessageListener\",\"url\":\"classes/FixedThreadPool.html#registerWorkerMessageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"createWorker\",\"url\":\"classes/FixedThreadPool.html#createWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"afterWorkerSetup\",\"url\":\"classes/FixedThreadPool.html#afterWorkerSetup\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"FixedThreadPool\"},{\"kind\":262144,\"name\":\"type\",\"url\":\"classes/FixedThreadPool.html#type\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"FixedThreadPool\"},{\"kind\":262144,\"name\":\"busy\",\"url\":\"classes/FixedThreadPool.html#busy\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"workers\",\"url\":\"classes/FixedThreadPool.html#workers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"tasks\",\"url\":\"classes/FixedThreadPool.html#tasks\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"emitter\",\"url\":\"classes/FixedThreadPool.html#emitter\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"max\",\"url\":\"classes/FixedThreadPool.html#max\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"promiseMap\",\"url\":\"classes/FixedThreadPool.html#promiseMap\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"nextMessageId\",\"url\":\"classes/FixedThreadPool.html#nextMessageId\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"workerChoiceStrategyContext\",\"url\":\"classes/FixedThreadPool.html#workerChoiceStrategyContext\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"numberOfWorkers\",\"url\":\"classes/FixedThreadPool.html#numberOfWorkers\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"filePath\",\"url\":\"classes/FixedThreadPool.html#filePath\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/FixedThreadPool.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":262144,\"name\":\"numberOfRunningTasks\",\"url\":\"classes/FixedThreadPool.html#numberOfRunningTasks\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"getWorkerRunningTasks\",\"url\":\"classes/FixedThreadPool.html#getWorkerRunningTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"getWorkerIndex\",\"url\":\"classes/FixedThreadPool.html#getWorkerIndex\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"setWorkerChoiceStrategy\",\"url\":\"classes/FixedThreadPool.html#setWorkerChoiceStrategy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"internalGetBusyStatus\",\"url\":\"classes/FixedThreadPool.html#internalGetBusyStatus\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"findFreeWorker\",\"url\":\"classes/FixedThreadPool.html#findFreeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"execute\",\"url\":\"classes/FixedThreadPool.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"destroy\",\"url\":\"classes/FixedThreadPool.html#destroy\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"setupHook\",\"url\":\"classes/FixedThreadPool.html#setupHook\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"increaseWorkersTask\",\"url\":\"classes/FixedThreadPool.html#increaseWorkersTask\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"decreaseWorkersTasks\",\"url\":\"classes/FixedThreadPool.html#decreaseWorkersTasks\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"removeWorker\",\"url\":\"classes/FixedThreadPool.html#removeWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"chooseWorker\",\"url\":\"classes/FixedThreadPool.html#chooseWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"internalExecute\",\"url\":\"classes/FixedThreadPool.html#internalExecute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"createAndSetupWorker\",\"url\":\"classes/FixedThreadPool.html#createAndSetupWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":2048,\"name\":\"workerListener\",\"url\":\"classes/FixedThreadPool.html#workerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"FixedThreadPool\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/FixedThreadPool.html#workerListener.workerListener-1.__type\",\"classes\":\"tsd-kind-type-literal\",\"parent\":\"FixedThreadPool.workerListener.workerListener\"},{\"kind\":4194304,\"name\":\"ThreadWorkerWithMessageChannel\",\"url\":\"types/ThreadWorkerWithMessageChannel.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":128,\"name\":\"AbstractWorker\",\"url\":\"classes/AbstractWorker.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/AbstractWorker.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"AbstractWorker\"},{\"kind\":1024,\"name\":\"lastTaskTimestamp\",\"url\":\"classes/AbstractWorker.html#lastTaskTimestamp\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":1024,\"name\":\"aliveInterval\",\"url\":\"classes/AbstractWorker.html#aliveInterval\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/AbstractWorker.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"AbstractWorker\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"classes/AbstractWorker.html#mainWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"messageListener\",\"url\":\"classes/AbstractWorker.html#messageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"checkWorkerOptions\",\"url\":\"classes/AbstractWorker.html#checkWorkerOptions\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"checkFunctionInput\",\"url\":\"classes/AbstractWorker.html#checkFunctionInput\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"getMainWorker\",\"url\":\"classes/AbstractWorker.html#getMainWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"sendToMainWorker\",\"url\":\"classes/AbstractWorker.html#sendToMainWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"checkAlive\",\"url\":\"classes/AbstractWorker.html#checkAlive\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"handleError\",\"url\":\"classes/AbstractWorker.html#handleError\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"run\",\"url\":\"classes/AbstractWorker.html#run\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":2048,\"name\":\"runAsync\",\"url\":\"classes/AbstractWorker.html#runAsync\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"AbstractWorker\"},{\"kind\":128,\"name\":\"ClusterWorker\",\"url\":\"classes/ClusterWorker.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/ClusterWorker.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"sendToMainWorker\",\"url\":\"classes/ClusterWorker.html#sendToMainWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"handleError\",\"url\":\"classes/ClusterWorker.html#handleError\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"ClusterWorker\"},{\"kind\":1024,\"name\":\"lastTaskTimestamp\",\"url\":\"classes/ClusterWorker.html#lastTaskTimestamp\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":1024,\"name\":\"aliveInterval\",\"url\":\"classes/ClusterWorker.html#aliveInterval\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/ClusterWorker.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"classes/ClusterWorker.html#mainWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"messageListener\",\"url\":\"classes/ClusterWorker.html#messageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"getMainWorker\",\"url\":\"classes/ClusterWorker.html#getMainWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"checkAlive\",\"url\":\"classes/ClusterWorker.html#checkAlive\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"run\",\"url\":\"classes/ClusterWorker.html#run\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":2048,\"name\":\"runAsync\",\"url\":\"classes/ClusterWorker.html#runAsync\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ClusterWorker\"},{\"kind\":128,\"name\":\"ThreadWorker\",\"url\":\"classes/ThreadWorker.html\",\"classes\":\"tsd-kind-class\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/ThreadWorker.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"sendToMainWorker\",\"url\":\"classes/ThreadWorker.html#sendToMainWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected\",\"parent\":\"ThreadWorker\"},{\"kind\":1024,\"name\":\"lastTaskTimestamp\",\"url\":\"classes/ThreadWorker.html#lastTaskTimestamp\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":1024,\"name\":\"aliveInterval\",\"url\":\"classes/ThreadWorker.html#aliveInterval\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":1024,\"name\":\"opts\",\"url\":\"classes/ThreadWorker.html#opts\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"classes/ThreadWorker.html#mainWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"messageListener\",\"url\":\"classes/ThreadWorker.html#messageListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"getMainWorker\",\"url\":\"classes/ThreadWorker.html#getMainWorker\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"checkAlive\",\"url\":\"classes/ThreadWorker.html#checkAlive\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"handleError\",\"url\":\"classes/ThreadWorker.html#handleError\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"run\",\"url\":\"classes/ThreadWorker.html#run\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":2048,\"name\":\"runAsync\",\"url\":\"classes/ThreadWorker.html#runAsync\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-protected tsd-is-inherited\",\"parent\":\"ThreadWorker\"},{\"kind\":32,\"name\":\"KillBehaviors\",\"url\":\"variables/KillBehaviors.html\",\"classes\":\"tsd-kind-variable\"},{\"kind\":4194304,\"name\":\"KillBehavior\",\"url\":\"types/KillBehavior.html\",\"classes\":\"tsd-kind-type-alias\"},{\"kind\":256,\"name\":\"WorkerOptions\",\"url\":\"interfaces/WorkerOptions.html\",\"classes\":\"tsd-kind-interface\"},{\"kind\":1024,\"name\":\"maxInactiveTime\",\"url\":\"interfaces/WorkerOptions.html#maxInactiveTime\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"WorkerOptions\"},{\"kind\":1024,\"name\":\"async\",\"url\":\"interfaces/WorkerOptions.html#async\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"WorkerOptions\"},{\"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\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,50.239]],[\"comment/0\",[]],[\"name/1\",[1,34.144]],[\"comment/1\",[]],[\"name/2\",[2,39.253]],[\"comment/2\",[]],[\"name/3\",[3,39.253]],[\"comment/3\",[]],[\"name/4\",[4,39.253]],[\"comment/4\",[]],[\"name/5\",[5,34.144]],[\"comment/5\",[]],[\"name/6\",[6,39.253]],[\"comment/6\",[]],[\"name/7\",[7,39.253]],[\"comment/7\",[]],[\"name/8\",[8,39.253]],[\"comment/8\",[]],[\"name/9\",[9,39.253]],[\"comment/9\",[]],[\"name/10\",[10,39.253]],[\"comment/10\",[]],[\"name/11\",[11,39.253]],[\"comment/11\",[]],[\"name/12\",[12,39.253]],[\"comment/12\",[]],[\"name/13\",[13,39.253]],[\"comment/13\",[]],[\"name/14\",[14,39.253]],[\"comment/14\",[]],[\"name/15\",[15,39.253]],[\"comment/15\",[]],[\"name/16\",[16,39.253]],[\"comment/16\",[]],[\"name/17\",[17,39.253]],[\"comment/17\",[]],[\"name/18\",[18,39.253]],[\"comment/18\",[]],[\"name/19\",[19,39.253]],[\"comment/19\",[]],[\"name/20\",[20,39.253]],[\"comment/20\",[]],[\"name/21\",[21,39.253]],[\"comment/21\",[]],[\"name/22\",[22,39.253]],[\"comment/22\",[]],[\"name/23\",[23,39.253]],[\"comment/23\",[]],[\"name/24\",[24,37.246]],[\"comment/24\",[]],[\"name/25\",[25,39.253]],[\"comment/25\",[]],[\"name/26\",[26,39.253]],[\"comment/26\",[]],[\"name/27\",[27,37.246]],[\"comment/27\",[]],[\"name/28\",[28,37.246]],[\"comment/28\",[]],[\"name/29\",[29,39.253]],[\"comment/29\",[]],[\"name/30\",[30,39.253]],[\"comment/30\",[]],[\"name/31\",[31,39.253]],[\"comment/31\",[]],[\"name/32\",[32,39.253]],[\"comment/32\",[]],[\"name/33\",[33,39.253]],[\"comment/33\",[]],[\"name/34\",[34,39.253]],[\"comment/34\",[]],[\"name/35\",[35,39.253]],[\"comment/35\",[]],[\"name/36\",[36,34.144]],[\"comment/36\",[]],[\"name/37\",[37,50.239]],[\"comment/37\",[]],[\"name/38\",[1,34.144]],[\"comment/38\",[]],[\"name/39\",[5,34.144]],[\"comment/39\",[]],[\"name/40\",[6,39.253]],[\"comment/40\",[]],[\"name/41\",[7,39.253]],[\"comment/41\",[]],[\"name/42\",[8,39.253]],[\"comment/42\",[]],[\"name/43\",[9,39.253]],[\"comment/43\",[]],[\"name/44\",[10,39.253]],[\"comment/44\",[]],[\"name/45\",[11,39.253]],[\"comment/45\",[]],[\"name/46\",[12,39.253]],[\"comment/46\",[]],[\"name/47\",[3,39.253]],[\"comment/47\",[]],[\"name/48\",[4,39.253]],[\"comment/48\",[]],[\"name/49\",[13,39.253]],[\"comment/49\",[]],[\"name/50\",[14,39.253]],[\"comment/50\",[]],[\"name/51\",[15,39.253]],[\"comment/51\",[]],[\"name/52\",[2,39.253]],[\"comment/52\",[]],[\"name/53\",[16,39.253]],[\"comment/53\",[]],[\"name/54\",[17,39.253]],[\"comment/54\",[]],[\"name/55\",[18,39.253]],[\"comment/55\",[]],[\"name/56\",[19,39.253]],[\"comment/56\",[]],[\"name/57\",[20,39.253]],[\"comment/57\",[]],[\"name/58\",[21,39.253]],[\"comment/58\",[]],[\"name/59\",[22,39.253]],[\"comment/59\",[]],[\"name/60\",[23,39.253]],[\"comment/60\",[]],[\"name/61\",[24,37.246]],[\"comment/61\",[]],[\"name/62\",[25,39.253]],[\"comment/62\",[]],[\"name/63\",[26,39.253]],[\"comment/63\",[]],[\"name/64\",[27,37.246]],[\"comment/64\",[]],[\"name/65\",[28,37.246]],[\"comment/65\",[]],[\"name/66\",[29,39.253]],[\"comment/66\",[]],[\"name/67\",[30,39.253]],[\"comment/67\",[]],[\"name/68\",[31,39.253]],[\"comment/68\",[]],[\"name/69\",[32,39.253]],[\"comment/69\",[]],[\"name/70\",[33,39.253]],[\"comment/70\",[]],[\"name/71\",[34,39.253]],[\"comment/71\",[]],[\"name/72\",[35,39.253]],[\"comment/72\",[]],[\"name/73\",[36,34.144]],[\"comment/73\",[]],[\"name/74\",[38,50.239]],[\"comment/74\",[]],[\"name/75\",[39,50.239]],[\"comment/75\",[]],[\"name/76\",[40,45.131]],[\"comment/76\",[]],[\"name/77\",[41,41.766]],[\"comment/77\",[]],[\"name/78\",[42,41.766]],[\"comment/78\",[]],[\"name/79\",[43,41.766]],[\"comment/79\",[]],[\"name/80\",[44,41.766]],[\"comment/80\",[]],[\"name/81\",[45,45.131]],[\"comment/81\",[]],[\"name/82\",[46,50.239]],[\"comment/82\",[]],[\"name/83\",[27,37.246]],[\"comment/83\",[]],[\"name/84\",[28,37.246]],[\"comment/84\",[]],[\"name/85\",[24,37.246]],[\"comment/85\",[]],[\"name/86\",[47,50.239]],[\"comment/86\",[]],[\"name/87\",[40,45.131]],[\"comment/87\",[]],[\"name/88\",[41,41.766]],[\"comment/88\",[]],[\"name/89\",[42,41.766]],[\"comment/89\",[]],[\"name/90\",[43,41.766]],[\"comment/90\",[]],[\"name/91\",[44,41.766]],[\"comment/91\",[]],[\"name/92\",[45,45.131]],[\"comment/92\",[]],[\"name/93\",[41,41.766]],[\"comment/93\",[]],[\"name/94\",[36,34.144]],[\"comment/94\",[]],[\"name/95\",[43,41.766]],[\"comment/95\",[]],[\"name/96\",[36,34.144]],[\"comment/96\",[]],[\"name/97\",[48,50.239]],[\"comment/97\",[]],[\"name/98\",[49,50.239]],[\"comment/98\",[]],[\"name/99\",[50,50.239]],[\"comment/99\",[]],[\"name/100\",[51,50.239]],[\"comment/100\",[]],[\"name/101\",[42,41.766]],[\"comment/101\",[]],[\"name/102\",[36,34.144]],[\"comment/102\",[]],[\"name/103\",[52,50.239]],[\"comment/103\",[]],[\"name/104\",[44,41.766]],[\"comment/104\",[]],[\"name/105\",[53,50.239]],[\"comment/105\",[]],[\"name/106\",[1,34.144]],[\"comment/106\",[]],[\"name/107\",[2,39.253]],[\"comment/107\",[]],[\"name/108\",[3,39.253]],[\"comment/108\",[]],[\"name/109\",[4,39.253]],[\"comment/109\",[]],[\"name/110\",[7,39.253]],[\"comment/110\",[]],[\"name/111\",[8,39.253]],[\"comment/111\",[]],[\"name/112\",[9,39.253]],[\"comment/112\",[]],[\"name/113\",[10,39.253]],[\"comment/113\",[]],[\"name/114\",[11,39.253]],[\"comment/114\",[]],[\"name/115\",[12,39.253]],[\"comment/115\",[]],[\"name/116\",[13,39.253]],[\"comment/116\",[]],[\"name/117\",[14,39.253]],[\"comment/117\",[]],[\"name/118\",[15,39.253]],[\"comment/118\",[]],[\"name/119\",[16,39.253]],[\"comment/119\",[]],[\"name/120\",[17,39.253]],[\"comment/120\",[]],[\"name/121\",[18,39.253]],[\"comment/121\",[]],[\"name/122\",[19,39.253]],[\"comment/122\",[]],[\"name/123\",[20,39.253]],[\"comment/123\",[]],[\"name/124\",[5,34.144]],[\"comment/124\",[]],[\"name/125\",[21,39.253]],[\"comment/125\",[]],[\"name/126\",[22,39.253]],[\"comment/126\",[]],[\"name/127\",[23,39.253]],[\"comment/127\",[]],[\"name/128\",[24,37.246]],[\"comment/128\",[]],[\"name/129\",[25,39.253]],[\"comment/129\",[]],[\"name/130\",[26,39.253]],[\"comment/130\",[]],[\"name/131\",[27,37.246]],[\"comment/131\",[]],[\"name/132\",[28,37.246]],[\"comment/132\",[]],[\"name/133\",[6,39.253]],[\"comment/133\",[]],[\"name/134\",[29,39.253]],[\"comment/134\",[]],[\"name/135\",[30,39.253]],[\"comment/135\",[]],[\"name/136\",[31,39.253]],[\"comment/136\",[]],[\"name/137\",[32,39.253]],[\"comment/137\",[]],[\"name/138\",[33,39.253]],[\"comment/138\",[]],[\"name/139\",[34,39.253]],[\"comment/139\",[]],[\"name/140\",[35,39.253]],[\"comment/140\",[]],[\"name/141\",[36,34.144]],[\"comment/141\",[]],[\"name/142\",[54,50.239]],[\"comment/142\",[]],[\"name/143\",[1,34.144]],[\"comment/143\",[]],[\"name/144\",[7,39.253]],[\"comment/144\",[]],[\"name/145\",[8,39.253]],[\"comment/145\",[]],[\"name/146\",[9,39.253]],[\"comment/146\",[]],[\"name/147\",[10,39.253]],[\"comment/147\",[]],[\"name/148\",[11,39.253]],[\"comment/148\",[]],[\"name/149\",[12,39.253]],[\"comment/149\",[]],[\"name/150\",[3,39.253]],[\"comment/150\",[]],[\"name/151\",[4,39.253]],[\"comment/151\",[]],[\"name/152\",[13,39.253]],[\"comment/152\",[]],[\"name/153\",[14,39.253]],[\"comment/153\",[]],[\"name/154\",[15,39.253]],[\"comment/154\",[]],[\"name/155\",[2,39.253]],[\"comment/155\",[]],[\"name/156\",[16,39.253]],[\"comment/156\",[]],[\"name/157\",[17,39.253]],[\"comment/157\",[]],[\"name/158\",[18,39.253]],[\"comment/158\",[]],[\"name/159\",[19,39.253]],[\"comment/159\",[]],[\"name/160\",[20,39.253]],[\"comment/160\",[]],[\"name/161\",[5,34.144]],[\"comment/161\",[]],[\"name/162\",[21,39.253]],[\"comment/162\",[]],[\"name/163\",[22,39.253]],[\"comment/163\",[]],[\"name/164\",[23,39.253]],[\"comment/164\",[]],[\"name/165\",[24,37.246]],[\"comment/165\",[]],[\"name/166\",[25,39.253]],[\"comment/166\",[]],[\"name/167\",[26,39.253]],[\"comment/167\",[]],[\"name/168\",[27,37.246]],[\"comment/168\",[]],[\"name/169\",[28,37.246]],[\"comment/169\",[]],[\"name/170\",[6,39.253]],[\"comment/170\",[]],[\"name/171\",[29,39.253]],[\"comment/171\",[]],[\"name/172\",[30,39.253]],[\"comment/172\",[]],[\"name/173\",[31,39.253]],[\"comment/173\",[]],[\"name/174\",[32,39.253]],[\"comment/174\",[]],[\"name/175\",[33,39.253]],[\"comment/175\",[]],[\"name/176\",[34,39.253]],[\"comment/176\",[]],[\"name/177\",[35,39.253]],[\"comment/177\",[]],[\"name/178\",[36,34.144]],[\"comment/178\",[]],[\"name/179\",[55,50.239]],[\"comment/179\",[]],[\"name/180\",[56,50.239]],[\"comment/180\",[]],[\"name/181\",[1,34.144]],[\"comment/181\",[]],[\"name/182\",[57,41.766]],[\"comment/182\",[]],[\"name/183\",[58,41.766]],[\"comment/183\",[]],[\"name/184\",[5,34.144]],[\"comment/184\",[]],[\"name/185\",[59,41.766]],[\"comment/185\",[]],[\"name/186\",[60,41.766]],[\"comment/186\",[]],[\"name/187\",[61,50.239]],[\"comment/187\",[]],[\"name/188\",[62,50.239]],[\"comment/188\",[]],[\"name/189\",[63,41.766]],[\"comment/189\",[]],[\"name/190\",[64,41.766]],[\"comment/190\",[]],[\"name/191\",[65,41.766]],[\"comment/191\",[]],[\"name/192\",[66,41.766]],[\"comment/192\",[]],[\"name/193\",[67,41.766]],[\"comment/193\",[]],[\"name/194\",[68,41.766]],[\"comment/194\",[]],[\"name/195\",[69,50.239]],[\"comment/195\",[]],[\"name/196\",[1,34.144]],[\"comment/196\",[]],[\"name/197\",[64,41.766]],[\"comment/197\",[]],[\"name/198\",[66,41.766]],[\"comment/198\",[]],[\"name/199\",[57,41.766]],[\"comment/199\",[]],[\"name/200\",[58,41.766]],[\"comment/200\",[]],[\"name/201\",[5,34.144]],[\"comment/201\",[]],[\"name/202\",[59,41.766]],[\"comment/202\",[]],[\"name/203\",[60,41.766]],[\"comment/203\",[]],[\"name/204\",[63,41.766]],[\"comment/204\",[]],[\"name/205\",[65,41.766]],[\"comment/205\",[]],[\"name/206\",[67,41.766]],[\"comment/206\",[]],[\"name/207\",[68,41.766]],[\"comment/207\",[]],[\"name/208\",[70,50.239]],[\"comment/208\",[]],[\"name/209\",[1,34.144]],[\"comment/209\",[]],[\"name/210\",[64,41.766]],[\"comment/210\",[]],[\"name/211\",[57,41.766]],[\"comment/211\",[]],[\"name/212\",[58,41.766]],[\"comment/212\",[]],[\"name/213\",[5,34.144]],[\"comment/213\",[]],[\"name/214\",[59,41.766]],[\"comment/214\",[]],[\"name/215\",[60,41.766]],[\"comment/215\",[]],[\"name/216\",[63,41.766]],[\"comment/216\",[]],[\"name/217\",[65,41.766]],[\"comment/217\",[]],[\"name/218\",[66,41.766]],[\"comment/218\",[]],[\"name/219\",[67,41.766]],[\"comment/219\",[]],[\"name/220\",[68,41.766]],[\"comment/220\",[]],[\"name/221\",[71,50.239]],[\"comment/221\",[]],[\"name/222\",[72,45.131]],[\"comment/222\",[]],[\"name/223\",[73,50.239]],[\"comment/223\",[]],[\"name/224\",[74,50.239]],[\"comment/224\",[]],[\"name/225\",[75,50.239]],[\"comment/225\",[]],[\"name/226\",[72,45.131]],[\"comment/226\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":36,\"name\":{\"36\":{},\"73\":{},\"94\":{},\"96\":{},\"102\":{},\"141\":{},\"178\":{}},\"comment\":{}}],[\"abstractworker\",{\"_index\":56,\"name\":{\"180\":{}},\"comment\":{}}],[\"afterworkersetup\",{\"_index\":12,\"name\":{\"12\":{},\"46\":{},\"115\":{},\"149\":{}},\"comment\":{}}],[\"aliveinterval\",{\"_index\":58,\"name\":{\"183\":{},\"200\":{},\"212\":{}},\"comment\":{}}],[\"async\",{\"_index\":75,\"name\":{\"225\":{}},\"comment\":{}}],[\"busy\",{\"_index\":4,\"name\":{\"4\":{},\"48\":{},\"109\":{},\"151\":{}},\"comment\":{}}],[\"checkalive\",{\"_index\":65,\"name\":{\"191\":{},\"205\":{},\"217\":{}},\"comment\":{}}],[\"checkfunctioninput\",{\"_index\":62,\"name\":{\"188\":{}},\"comment\":{}}],[\"checkworkeroptions\",{\"_index\":61,\"name\":{\"187\":{}},\"comment\":{}}],[\"chooseworker\",{\"_index\":32,\"name\":{\"32\":{},\"69\":{},\"137\":{},\"174\":{}},\"comment\":{}}],[\"clusterpooloptions\",{\"_index\":38,\"name\":{\"74\":{}},\"comment\":{}}],[\"clusterworker\",{\"_index\":69,\"name\":{\"195\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":1,\"name\":{\"1\":{},\"38\":{},\"106\":{},\"143\":{},\"181\":{},\"196\":{},\"209\":{}},\"comment\":{}}],[\"createandsetupworker\",{\"_index\":34,\"name\":{\"34\":{},\"71\":{},\"139\":{},\"176\":{}},\"comment\":{}}],[\"createworker\",{\"_index\":11,\"name\":{\"11\":{},\"45\":{},\"114\":{},\"148\":{}},\"comment\":{}}],[\"decreaseworkerstasks\",{\"_index\":30,\"name\":{\"30\":{},\"67\":{},\"135\":{},\"172\":{}},\"comment\":{}}],[\"destroy\",{\"_index\":28,\"name\":{\"28\":{},\"65\":{},\"84\":{},\"132\":{},\"169\":{}},\"comment\":{}}],[\"destroyworker\",{\"_index\":8,\"name\":{\"8\":{},\"42\":{},\"111\":{},\"145\":{}},\"comment\":{}}],[\"dynamicclusterpool\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"dynamicthreadpool\",{\"_index\":53,\"name\":{\"105\":{}},\"comment\":{}}],[\"emitter\",{\"_index\":15,\"name\":{\"15\":{},\"51\":{},\"118\":{},\"154\":{}},\"comment\":{}}],[\"enableevents\",{\"_index\":45,\"name\":{\"81\":{},\"92\":{}},\"comment\":{}}],[\"env\",{\"_index\":39,\"name\":{\"75\":{}},\"comment\":{}}],[\"errorhandler\",{\"_index\":41,\"name\":{\"77\":{},\"88\":{},\"93\":{}},\"comment\":{}}],[\"execute\",{\"_index\":27,\"name\":{\"27\":{},\"64\":{},\"83\":{},\"131\":{},\"168\":{}},\"comment\":{}}],[\"exithandler\",{\"_index\":43,\"name\":{\"79\":{},\"90\":{},\"95\":{}},\"comment\":{}}],[\"filepath\",{\"_index\":20,\"name\":{\"20\":{},\"57\":{},\"123\":{},\"160\":{}},\"comment\":{}}],[\"findfreeworker\",{\"_index\":26,\"name\":{\"26\":{},\"63\":{},\"130\":{},\"167\":{}},\"comment\":{}}],[\"fixedclusterpool\",{\"_index\":37,\"name\":{\"37\":{}},\"comment\":{}}],[\"fixedthreadpool\",{\"_index\":54,\"name\":{\"142\":{}},\"comment\":{}}],[\"getmainworker\",{\"_index\":63,\"name\":{\"189\":{},\"204\":{},\"216\":{}},\"comment\":{}}],[\"getworkerindex\",{\"_index\":23,\"name\":{\"23\":{},\"60\":{},\"127\":{},\"164\":{}},\"comment\":{}}],[\"getworkerrunningtasks\",{\"_index\":22,\"name\":{\"22\":{},\"59\":{},\"126\":{},\"163\":{}},\"comment\":{}}],[\"handleerror\",{\"_index\":66,\"name\":{\"192\":{},\"198\":{},\"218\":{}},\"comment\":{}}],[\"id\",{\"_index\":49,\"name\":{\"98\":{}},\"comment\":{}}],[\"increaseworkerstask\",{\"_index\":29,\"name\":{\"29\":{},\"66\":{},\"134\":{},\"171\":{}},\"comment\":{}}],[\"internalexecute\",{\"_index\":33,\"name\":{\"33\":{},\"70\":{},\"138\":{},\"175\":{}},\"comment\":{}}],[\"internalgetbusystatus\",{\"_index\":25,\"name\":{\"25\":{},\"62\":{},\"129\":{},\"166\":{}},\"comment\":{}}],[\"ipool\",{\"_index\":46,\"name\":{\"82\":{}},\"comment\":{}}],[\"ipoolworker\",{\"_index\":48,\"name\":{\"97\":{}},\"comment\":{}}],[\"ismain\",{\"_index\":7,\"name\":{\"7\":{},\"41\":{},\"110\":{},\"144\":{}},\"comment\":{}}],[\"killbehavior\",{\"_index\":72,\"name\":{\"222\":{},\"226\":{}},\"comment\":{}}],[\"killbehaviors\",{\"_index\":71,\"name\":{\"221\":{}},\"comment\":{}}],[\"lasttasktimestamp\",{\"_index\":57,\"name\":{\"182\":{},\"199\":{},\"211\":{}},\"comment\":{}}],[\"mainworker\",{\"_index\":59,\"name\":{\"185\":{},\"202\":{},\"214\":{}},\"comment\":{}}],[\"max\",{\"_index\":2,\"name\":{\"2\":{},\"52\":{},\"107\":{},\"155\":{}},\"comment\":{}}],[\"maxinactivetime\",{\"_index\":74,\"name\":{\"224\":{}},\"comment\":{}}],[\"messagehandler\",{\"_index\":40,\"name\":{\"76\":{},\"87\":{}},\"comment\":{}}],[\"messagelistener\",{\"_index\":60,\"name\":{\"186\":{},\"203\":{},\"215\":{}},\"comment\":{}}],[\"nextmessageid\",{\"_index\":17,\"name\":{\"17\":{},\"54\":{},\"120\":{},\"157\":{}},\"comment\":{}}],[\"numberofrunningtasks\",{\"_index\":21,\"name\":{\"21\":{},\"58\":{},\"125\":{},\"162\":{}},\"comment\":{}}],[\"numberofworkers\",{\"_index\":19,\"name\":{\"19\":{},\"56\":{},\"122\":{},\"159\":{}},\"comment\":{}}],[\"on\",{\"_index\":50,\"name\":{\"99\":{}},\"comment\":{}}],[\"once\",{\"_index\":51,\"name\":{\"100\":{}},\"comment\":{}}],[\"onlinehandler\",{\"_index\":42,\"name\":{\"78\":{},\"89\":{},\"101\":{}},\"comment\":{}}],[\"opts\",{\"_index\":5,\"name\":{\"5\":{},\"39\":{},\"124\":{},\"161\":{},\"184\":{},\"201\":{},\"213\":{}},\"comment\":{}}],[\"pooloptions\",{\"_index\":47,\"name\":{\"86\":{}},\"comment\":{}}],[\"promisemap\",{\"_index\":16,\"name\":{\"16\":{},\"53\":{},\"119\":{},\"156\":{}},\"comment\":{}}],[\"registerworkermessagelistener\",{\"_index\":10,\"name\":{\"10\":{},\"44\":{},\"113\":{},\"147\":{}},\"comment\":{}}],[\"removeworker\",{\"_index\":31,\"name\":{\"31\":{},\"68\":{},\"136\":{},\"173\":{}},\"comment\":{}}],[\"run\",{\"_index\":67,\"name\":{\"193\":{},\"206\":{},\"219\":{}},\"comment\":{}}],[\"runasync\",{\"_index\":68,\"name\":{\"194\":{},\"207\":{},\"220\":{}},\"comment\":{}}],[\"sendtomainworker\",{\"_index\":64,\"name\":{\"190\":{},\"197\":{},\"210\":{}},\"comment\":{}}],[\"sendtoworker\",{\"_index\":9,\"name\":{\"9\":{},\"43\":{},\"112\":{},\"146\":{}},\"comment\":{}}],[\"setuphook\",{\"_index\":6,\"name\":{\"6\":{},\"40\":{},\"133\":{},\"170\":{}},\"comment\":{}}],[\"setworkerchoicestrategy\",{\"_index\":24,\"name\":{\"24\":{},\"61\":{},\"85\":{},\"128\":{},\"165\":{}},\"comment\":{}}],[\"tasks\",{\"_index\":14,\"name\":{\"14\":{},\"50\":{},\"117\":{},\"153\":{}},\"comment\":{}}],[\"threadworker\",{\"_index\":70,\"name\":{\"208\":{}},\"comment\":{}}],[\"threadworkerwithmessagechannel\",{\"_index\":55,\"name\":{\"179\":{}},\"comment\":{}}],[\"type\",{\"_index\":3,\"name\":{\"3\":{},\"47\":{},\"108\":{},\"150\":{}},\"comment\":{}}],[\"workerchoicestrategies\",{\"_index\":52,\"name\":{\"103\":{}},\"comment\":{}}],[\"workerchoicestrategy\",{\"_index\":44,\"name\":{\"80\":{},\"91\":{},\"104\":{}},\"comment\":{}}],[\"workerchoicestrategycontext\",{\"_index\":18,\"name\":{\"18\":{},\"55\":{},\"121\":{},\"158\":{}},\"comment\":{}}],[\"workerlistener\",{\"_index\":35,\"name\":{\"35\":{},\"72\":{},\"140\":{},\"177\":{}},\"comment\":{}}],[\"workeroptions\",{\"_index\":73,\"name\":{\"223\":{}},\"comment\":{}}],[\"workers\",{\"_index\":13,\"name\":{\"13\":{},\"49\":{},\"116\":{},\"152\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css index 28f90b67..958d2c26 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -1,186 +1,176 @@ -@import url("./icons.css"); - :root { /* Light */ - --light-color-background: #fcfcfc; - --light-color-secondary-background: #fff; + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-icon-background: var(--light-color-background); + --light-color-accent: #c5c7c9; --light-color-text: #222; --light-color-text-aside: #707070; --light-color-link: #4da6ff; - --light-color-menu-divider: #eee; - --light-color-menu-divider-focus: #000; - --light-color-menu-label: #707070; - --light-color-panel: var(--light-color-secondary-background); - --light-color-panel-divider: #eee; - --light-color-comment-tag: #707070; - --light-color-comment-tag-text: #fff; - --light-color-ts: #9600ff; - --light-color-ts-interface: #647f1b; - --light-color-ts-enum: #937210; - --light-color-ts-class: #0672de; + --light-color-ts: #db1373; + --light-color-ts-interface: #139d2c; + --light-color-ts-enum: #9c891a; + --light-color-ts-class: #2484e5; + --light-color-ts-function: #572be7; + --light-color-ts-namespace: #b111c9; --light-color-ts-private: #707070; - --light-color-toolbar: #fff; - --light-color-toolbar-text: #333; - --light-icon-filter: invert(0); + --light-color-ts-variable: #4d68ff; --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; /* Dark */ - --dark-color-background: #36393f; - --dark-color-secondary-background: #2f3136; - --dark-color-text: #ffffff; - --dark-color-text-aside: #e6e4e4; + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-accent: #9096a2; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; - --dark-color-menu-divider: #eee; - --dark-color-menu-divider-focus: #000; - --dark-color-menu-label: #707070; - --dark-color-panel: var(--dark-color-secondary-background); - --dark-color-panel-divider: #818181; - --dark-color-comment-tag: #dcddde; - --dark-color-comment-tag-text: #2f3136; - --dark-color-ts: #c97dff; - --dark-color-ts-interface: #9cbe3c; - --dark-color-ts-enum: #d6ab29; - --dark-color-ts-class: #3695f3; + --dark-color-ts: #ff6492; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-class: #61b0ff; + --dark-color-ts-function: #9772ff; + --dark-color-ts-namespace: #e14dff; --dark-color-ts-private: #e2e2e2; - --dark-color-toolbar: #34373c; - --dark-color-toolbar-text: #ffffff; - --dark-icon-filter: invert(1); + --dark-color-ts-variable: #4d68ff; --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; } @media (prefers-color-scheme: light) { :root { --color-background: var(--light-color-background); - --color-secondary-background: var(--light-color-secondary-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); - --color-menu-divider: var(--light-color-menu-divider); - --color-menu-divider-focus: var(--light-color-menu-divider-focus); - --color-menu-label: var(--light-color-menu-label); - --color-panel: var(--light-color-panel); - --color-panel-divider: var(--light-color-panel-divider); - --color-comment-tag: var(--light-color-comment-tag); - --color-comment-tag-text: var(--light-color-comment-tag-text); --color-ts: var(--light-color-ts); --color-ts-interface: var(--light-color-ts-interface); --color-ts-enum: var(--light-color-ts-enum); --color-ts-class: var(--light-color-ts-class); + --color-ts-function: var(--light-color-ts-function); + --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-private: var(--light-color-ts-private); - --color-toolbar: var(--light-color-toolbar); - --color-toolbar-text: var(--light-color-toolbar-text); - --icon-filter: var(--light-icon-filter); + --color-ts-variable: var(--light-color-ts-variable); --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); } } @media (prefers-color-scheme: dark) { :root { --color-background: var(--dark-color-background); - --color-secondary-background: var(--dark-color-secondary-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); - --color-menu-divider: var(--dark-color-menu-divider); - --color-menu-divider-focus: var(--dark-color-menu-divider-focus); - --color-menu-label: var(--dark-color-menu-label); - --color-panel: var(--dark-color-panel); - --color-panel-divider: var(--dark-color-panel-divider); - --color-comment-tag: var(--dark-color-comment-tag); - --color-comment-tag-text: var(--dark-color-comment-tag-text); --color-ts: var(--dark-color-ts); --color-ts-interface: var(--dark-color-ts-interface); --color-ts-enum: var(--dark-color-ts-enum); --color-ts-class: var(--dark-color-ts-class); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-private: var(--dark-color-ts-private); - --color-toolbar: var(--dark-color-toolbar); - --color-toolbar-text: var(--dark-color-toolbar-text); - --icon-filter: var(--dark-icon-filter); + --color-ts-variable: var(--dark-color-ts-variable); --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); } } +html { + color-scheme: var(--color-scheme); +} + body { margin: 0; } -body.light { +:root[data-theme="light"] { --color-background: var(--light-color-background); - --color-secondary-background: var(--light-color-secondary-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); - --color-menu-divider: var(--light-color-menu-divider); - --color-menu-divider-focus: var(--light-color-menu-divider-focus); - --color-menu-label: var(--light-color-menu-label); - --color-panel: var(--light-color-panel); - --color-panel-divider: var(--light-color-panel-divider); - --color-comment-tag: var(--light-color-comment-tag); - --color-comment-tag-text: var(--light-color-comment-tag-text); --color-ts: var(--light-color-ts); --color-ts-interface: var(--light-color-ts-interface); --color-ts-enum: var(--light-color-ts-enum); --color-ts-class: var(--light-color-ts-class); + --color-ts-function: var(--light-color-ts-function); + --color-ts-namespace: var(--light-color-ts-namespace); --color-ts-private: var(--light-color-ts-private); - --color-toolbar: var(--light-color-toolbar); - --color-toolbar-text: var(--light-color-toolbar-text); - --icon-filter: var(--light-icon-filter); + --color-ts-variable: var(--light-color-ts-variable); --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); } -body.dark { +:root[data-theme="dark"] { --color-background: var(--dark-color-background); - --color-secondary-background: var(--dark-color-secondary-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); - --color-menu-divider: var(--dark-color-menu-divider); - --color-menu-divider-focus: var(--dark-color-menu-divider-focus); - --color-menu-label: var(--dark-color-menu-label); - --color-panel: var(--dark-color-panel); - --color-panel-divider: var(--dark-color-panel-divider); - --color-comment-tag: var(--dark-color-comment-tag); - --color-comment-tag-text: var(--dark-color-comment-tag-text); --color-ts: var(--dark-color-ts); --color-ts-interface: var(--dark-color-ts-interface); --color-ts-enum: var(--dark-color-ts-enum); --color-ts-class: var(--dark-color-ts-class); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-private: var(--dark-color-ts-private); - --color-toolbar: var(--dark-color-toolbar); - --color-toolbar-text: var(--dark-color-toolbar-text); - --icon-filter: var(--dark-icon-filter); + --color-ts-variable: var(--dark-color-ts-variable); --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2; } h1 { - font-size: 2em; - margin: 0.67em 0; + font-size: 1.875rem; + margin: 0.67rem 0; } h2 { - font-size: 1.5em; - margin: 0.83em 0; + font-size: 1.5rem; + margin: 0.83rem 0; } h3 { - font-size: 1.17em; - margin: 1em 0; + font-size: 1.25rem; + margin: 1rem 0; } -h4, -.tsd-index-panel h3 { - font-size: 1em; - margin: 1.33em 0; +h4 { + font-size: 1.05rem; + margin: 1.33rem 0; } h5 { - font-size: 0.83em; - margin: 1.67em 0; + font-size: 1rem; + margin: 1.5rem 0; } h6 { - font-size: 0.67em; - margin: 2.33em 0; + font-size: 0.875rem; + margin: 2.33rem 0; +} + +.uppercase { + text-transform: uppercase; } pre { @@ -201,74 +191,61 @@ dd { } .container { - max-width: 1200px; - margin: 0 auto; - padding: 0 40px; + max-width: 1600px; + padding: 0 2rem; +} + +@media (min-width: 640px) { + .container { + padding: 0 4rem; + } } -@media (max-width: 640px) { +@media (min-width: 1200px) { .container { - padding: 0 20px; + padding: 0 8rem; + } +} +@media (min-width: 1600px) { + .container { + padding: 0 12rem; } } -.container-main { - padding-bottom: 200px; +/* Footer */ +.tsd-generator { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; +} + +.tsd-generator > p { + margin-top: 0; + margin-bottom: 0; + padding: 0 1rem; } -.row { +.container-main { display: flex; + justify-content: space-between; position: relative; - margin: 0 -10px; -} -.row:after { - visibility: hidden; - display: block; - content: ""; - clear: both; - height: 0; + margin: 0 auto; } .col-4, .col-8 { box-sizing: border-box; float: left; - padding: 0 10px; + padding: 2rem 1rem; } .col-4 { - width: 33.3333333333%; + flex: 0 0 25%; } .col-8 { - width: 66.6666666667%; -} - -ul.tsd-descriptions > li > :first-child, -.tsd-panel > :first-child, -.col-8 > :first-child, -.col-4 > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child, -.tsd-panel > :first-child > :first-child, -.col-8 > :first-child > :first-child, -.col-4 > :first-child > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child > :first-child, -.tsd-panel > :first-child > :first-child > :first-child, -.col-8 > :first-child > :first-child > :first-child, -.col-4 > :first-child > :first-child > :first-child { - margin-top: 0; -} -ul.tsd-descriptions > li > :last-child, -.tsd-panel > :last-child, -.col-8 > :last-child, -.col-4 > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child, -.tsd-panel > :last-child > :last-child, -.col-8 > :last-child > :last-child, -.col-4 > :last-child > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child > :last-child, -.tsd-panel > :last-child > :last-child > :last-child, -.col-8 > :last-child > :last-child > :last-child, -.col-4 > :last-child > :last-child > :last-child { - margin-bottom: 0; + flex: 1 0; + flex-wrap: wrap; + padding-left: 0; } @keyframes fade-in { @@ -370,11 +347,13 @@ pre { font-family: Menlo, Monaco, Consolas, "Courier New", monospace; padding: 0.2em; margin: 0; - font-size: 14px; + font-size: 0.875rem; + border-radius: 0.8em; } pre { padding: 10px; + border: 0.1em solid var(--color-accent); } pre code { padding: 0; @@ -413,36 +392,26 @@ blockquote { margin: 1em 0; } -@media (min-width: 901px) and (max-width: 1024px) { - html .col-content { - width: 72%; - } - html .col-menu { - width: 28%; - } - html .tsd-navigation { - padding-left: 10px; - } -} -@media (max-width: 900px) { +@media (max-width: 1024px) { html .col-content { float: none; + max-width: 100%; width: 100%; + padding-top: 3rem; } html .col-menu { position: fixed !important; - overflow: auto; + overflow-y: auto; -webkit-overflow-scrolling: touch; z-index: 1024; top: 0 !important; bottom: 0 !important; left: auto !important; right: 0 !important; - width: 100%; - padding: 20px 20px 0 0; - max-width: 450px; + padding: 1.5rem 1.5rem 0 0; + max-width: 25rem; visibility: hidden; - background-color: var(--color-panel); + background-color: var(--color-background); transform: translate(100%, 0); } html .col-menu > *:last-child { @@ -498,24 +467,17 @@ blockquote { visibility: visible; transform: translate(0, 0); display: grid; + align-items: center; grid-template-rows: auto 1fr; + grid-gap: 1.5rem; max-height: 100vh; + padding: 1rem 2rem; } .has-menu .tsd-navigation { max-height: 100%; } } -.tsd-page-title { - padding: 70px 0 20px 0; - margin: 0 0 40px 0; - background: var(--color-panel); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); -} -.tsd-page-title h1 { - margin: 0; -} - .tsd-breadcrumb { margin: 0; padding: 0; @@ -535,32 +497,44 @@ blockquote { content: " / "; } -dl.tsd-comment-tags { +.tsd-comment-tags { + display: flex; + flex-direction: column; +} +dl.tsd-comment-tag-group { + display: flex; + align-items: center; overflow: hidden; + margin: 0.5em 0; } -dl.tsd-comment-tags dt { - float: left; - padding: 1px 5px; - margin: 0 10px 0 0; - border-radius: 4px; - border: 1px solid var(--color-comment-tag); - color: var(--color-comment-tag); - font-size: 0.8em; +dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; font-weight: normal; } -dl.tsd-comment-tags dd { - margin: 0 0 10px 0; +dl.tsd-comment-tag-group dd { + margin: 0; +} +code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; +} +h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; } -dl.tsd-comment-tags dd:before, -dl.tsd-comment-tags dd:after { - display: table; + +dl.tsd-comment-tag-group dd:before, +dl.tsd-comment-tag-group dd:after { content: " "; } -dl.tsd-comment-tags dd pre, -dl.tsd-comment-tags dd:after { +dl.tsd-comment-tag-group dd pre, +dl.tsd-comment-tag-group dd:after { clear: both; } -dl.tsd-comment-tags p { +dl.tsd-comment-tag-group p { margin: 0; } @@ -573,153 +547,109 @@ dl.tsd-comment-tags p { margin-bottom: 0; } -.toggle-protected .tsd-is-private { - display: none; -} - -.toggle-public .tsd-is-private, -.toggle-public .tsd-is-protected, -.toggle-public .tsd-is-private-protected { - display: none; +.tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; } - -.toggle-inherited .tsd-is-inherited { - display: none; +.tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; } - -.toggle-externals .tsd-is-external { - display: none; +.tsd-filter-input { + display: flex; + width: fit-content; + width: -moz-fit-content; + align-items: center; + user-select: none; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + cursor: pointer; } - -#tsd-filter { - position: relative; - display: inline-block; - height: 40px; - vertical-align: bottom; +.tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; } -.no-filter #tsd-filter { - display: none; +.tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; } -#tsd-filter .tsd-filter-group { - display: inline-block; - height: 40px; - vertical-align: bottom; - white-space: nowrap; +.tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; } -#tsd-filter input { - display: none; +.tsd-filter-input input[type="checkbox"]:focus + svg { + transform: scale(0.95); } -@media (max-width: 900px) { - #tsd-filter .tsd-filter-group { - display: block; - position: absolute; - top: 40px; - right: 20px; - height: auto; - background-color: var(--color-panel); - visibility: hidden; - transform: translate(50%, 0); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); - } - .has-options #tsd-filter .tsd-filter-group { - visibility: visible; - } - .to-has-options #tsd-filter .tsd-filter-group { - animation: fade-in 0.2s; - } - .from-has-options #tsd-filter .tsd-filter-group { - animation: fade-out 0.2s; - } - #tsd-filter label, - #tsd-filter .tsd-select { - display: block; - padding-right: 20px; - } +.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg { + transform: scale(1); } - -footer { - border-top: 1px solid var(--color-panel-divider); - background-color: var(--color-panel); +.tsd-checkbox-background { + fill: var(--color-accent); } -footer:after { - content: ""; - display: table; +input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); } -footer.with-border-bottom { - border-bottom: 1px solid var(--color-panel-divider); +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; } -footer .tsd-legend-group { - font-size: 0; +.tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); } -footer .tsd-legend { - display: inline-block; - width: 25%; - padding: 0; - font-size: 16px; - list-style: none; - line-height: 1.333em; - vertical-align: top; + +.tsd-theme-toggle { + padding-top: 0.75rem; } -@media (max-width: 900px) { - footer .tsd-legend { - width: 50%; - } +.tsd-theme-toggle > h4 { + display: inline; + vertical-align: middle; + margin-right: 0.75rem; } .tsd-hierarchy { list-style: square; - padding: 0 0 0 20px; margin: 0; } .tsd-hierarchy .target { font-weight: bold; } -.tsd-index-panel .tsd-index-content { - margin-bottom: -30px !important; -} -.tsd-index-panel .tsd-index-section { - margin-bottom: 30px !important; -} -.tsd-index-panel h3 { - margin: 0 -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid var(--color-panel-divider); -} -.tsd-index-panel ul.tsd-index-list { - -webkit-column-count: 3; - -moz-column-count: 3; - -ms-column-count: 3; - -o-column-count: 3; - column-count: 3; - -webkit-column-gap: 20px; - -moz-column-gap: 20px; - -ms-column-gap: 20px; - -o-column-gap: 20px; - column-gap: 20px; - padding: 0; +.tsd-panel-group.tsd-index-group { + margin-bottom: 0; +} +.tsd-index-panel .tsd-index-list { list-style: none; line-height: 1.333em; -} -@media (max-width: 900px) { - .tsd-index-panel ul.tsd-index-list { - -webkit-column-count: 1; - -moz-column-count: 1; - -ms-column-count: 1; - -o-column-count: 1; - column-count: 1; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; +} +@media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); } } -@media (min-width: 901px) and (max-width: 1024px) { - .tsd-index-panel ul.tsd-index-list { - -webkit-column-count: 2; - -moz-column-count: 2; - -ms-column-count: 2; - -o-column-count: 2; - column-count: 2; +@media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); } } -.tsd-index-panel ul.tsd-index-list li { +.tsd-index-panel .tsd-index-list li { -webkit-page-break-inside: avoid; -moz-page-break-inside: avoid; -ms-page-break-inside: avoid; @@ -727,42 +657,52 @@ footer .tsd-legend { page-break-inside: avoid; } .tsd-index-panel a, -.tsd-index-panel .tsd-parent-kind-module a { +.tsd-index-panel a.tsd-parent-kind-module { color: var(--color-ts); } -.tsd-index-panel .tsd-parent-kind-interface a { +.tsd-index-panel a.tsd-parent-kind-interface { color: var(--color-ts-interface); } -.tsd-index-panel .tsd-parent-kind-enum a { +.tsd-index-panel a.tsd-parent-kind-enum { color: var(--color-ts-enum); } -.tsd-index-panel .tsd-parent-kind-class a { +.tsd-index-panel a.tsd-parent-kind-class { color: var(--color-ts-class); } -.tsd-index-panel .tsd-kind-module a { - color: var(--color-ts); +.tsd-index-panel a.tsd-kind-module { + color: var(--color-ts-namespace); } -.tsd-index-panel .tsd-kind-interface a { +.tsd-index-panel a.tsd-kind-interface { color: var(--color-ts-interface); } -.tsd-index-panel .tsd-kind-enum a { +.tsd-index-panel a.tsd-kind-enum { color: var(--color-ts-enum); } -.tsd-index-panel .tsd-kind-class a { +.tsd-index-panel a.tsd-kind-class { color: var(--color-ts-class); } -.tsd-index-panel .tsd-is-private a { +.tsd-index-panel a.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-index-panel a.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-index-panel a.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-index-panel a.tsd-is-private { color: var(--color-ts-private); } .tsd-flag { display: inline-block; - padding: 1px 5px; + padding: 0.25em 0.4em; border-radius: 4px; color: var(--color-comment-tag-text); background-color: var(--color-comment-tag); text-indent: 0; - font-size: 14px; + font-size: 75%; + line-height: 1; font-weight: normal; } @@ -775,6 +715,8 @@ footer .tsd-legend { position: relative; } .tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; margin-top: 0; margin-bottom: 0; border-bottom: none; @@ -795,13 +737,9 @@ footer .tsd-legend { color: var(--color-ts-private); } -.tsd-navigation { - margin: 0 0 0 40px; -} .tsd-navigation a { display: block; - padding-top: 2px; - padding-bottom: 2px; + margin: 0.4rem 0; border-left: 2px solid transparent; color: var(--color-text); text-decoration: none; @@ -819,110 +757,167 @@ footer .tsd-legend { padding: 0; } -.tsd-navigation.primary { - padding-bottom: 40px; +.tsd-navigation.primary .tsd-accordion-details > ul { + margin-top: 0.75rem; } .tsd-navigation.primary a { - display: block; - padding-top: 6px; - padding-bottom: 6px; + padding: 0.75rem 0.5rem; + margin: 0; } .tsd-navigation.primary ul li a { - padding-left: 5px; + margin-left: 0.5rem; } .tsd-navigation.primary ul li li a { - padding-left: 25px; + margin-left: 1.5rem; } .tsd-navigation.primary ul li li li a { - padding-left: 45px; + margin-left: 2.5rem; } .tsd-navigation.primary ul li li li li a { - padding-left: 65px; + margin-left: 3.5rem; } .tsd-navigation.primary ul li li li li li a { - padding-left: 85px; + margin-left: 4.5rem; } .tsd-navigation.primary ul li li li li li li a { - padding-left: 105px; -} -.tsd-navigation.primary > ul { - border-bottom: 1px solid var(--color-panel-divider); -} -.tsd-navigation.primary li { - border-top: 1px solid var(--color-panel-divider); + margin-left: 5.5rem; } .tsd-navigation.primary li.current > a { + border-left: 0.15rem var(--color-text) solid; +} +.tsd-navigation.primary li.selected > a { font-weight: bold; + border-left: 0.2rem var(--color-text) solid; } -.tsd-navigation.primary li.label span { - display: block; - padding: 20px 0 6px 5px; - color: var(--color-menu-label); +.tsd-navigation.primary ul li a:hover { + border-left: 0.2rem var(--color-text-aside) solid; } .tsd-navigation.primary li.globals + li > span, .tsd-navigation.primary li.globals + li > a { padding-top: 20px; } -.tsd-navigation.secondary { - max-height: calc(100vh - 1rem - 40px); - overflow: auto; - position: sticky; - top: calc(0.5rem + 40px); - transition: 0.3s; -} .tsd-navigation.secondary.tsd-navigation--toolbar-hide { max-height: calc(100vh - 1rem); top: 0.5rem; } -.tsd-navigation.secondary ul { +.tsd-navigation.secondary > ul { + display: inline; + padding-right: 0.5rem; transition: opacity 0.2s; } .tsd-navigation.secondary ul li a { - padding-left: 25px; + padding-left: 0; } .tsd-navigation.secondary ul li li a { - padding-left: 45px; + padding-left: 1.1rem; } .tsd-navigation.secondary ul li li li a { - padding-left: 65px; + padding-left: 2.2rem; } .tsd-navigation.secondary ul li li li li a { - padding-left: 85px; + padding-left: 3.3rem; } .tsd-navigation.secondary ul li li li li li a { - padding-left: 105px; + padding-left: 4.4rem; } .tsd-navigation.secondary ul li li li li li li a { - padding-left: 125px; + padding-left: 5.5rem; +} + +a.tsd-index-link { + margin: 0.25rem 0; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; +} +.tsd-accordion-summary > h1, +.tsd-accordion-summary > h2, +.tsd-accordion-summary > h3, +.tsd-accordion-summary > h4, +.tsd-accordion-summary > h5 { + display: inline-flex; + align-items: center; + vertical-align: middle; + margin-bottom: 0; + user-select: none; + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; +} +.tsd-accordion-summary { + display: block; + cursor: pointer; } -.tsd-navigation.secondary ul.current a { - border-left-color: var(--color-panel-divider); +.tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; } -.tsd-navigation.secondary li.focus > a, -.tsd-navigation.secondary ul.current li.focus > a { - border-left-color: var(--color-menu-divider-focus); +.tsd-accordion-summary::-webkit-details-marker { + display: none; } -.tsd-navigation.secondary li.current { - margin-top: 20px; - margin-bottom: 20px; - border-left-color: var(--color-panel-divider); +.tsd-index-accordion .tsd-accordion-summary svg { + margin-right: 0.25rem; } -.tsd-navigation.secondary li.current > a { - font-weight: bold; +.tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; +} +.tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; +} + +.tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; +} +.tsd-kind-icon path { + transform-origin: center; + transform: scale(1.1); +} +.tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; } -@media (min-width: 901px) { +@media (min-width: 1024px) { + .col-content { + margin: 2rem auto; + } + .menu-sticky-wrap { - position: static; + position: sticky; + height: calc(100vh - 2rem); + top: 4rem; + right: 0; + padding: 0 1.5rem; + padding-top: 1rem; + margin-top: 3rem; + transition: 0.3s ease-in-out; + transition-property: top, padding-top, padding, height; + overflow-y: auto; + } + .col-menu { + border-left: 1px solid var(--color-accent); + } + .col-menu--hide { + top: 1rem; + } + .col-menu .tsd-navigation:not(:last-child) { + padding-bottom: 1.75rem; } } .tsd-panel { - margin: 20px 0; - padding: 20px; - background-color: var(--color-panel); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + margin-bottom: 2.5rem; +} +.tsd-panel.tsd-member { + margin-bottom: 4rem; } .tsd-panel:empty { display: none; @@ -930,48 +925,24 @@ footer .tsd-legend { .tsd-panel > h1, .tsd-panel > h2, .tsd-panel > h3 { - margin: 1.5em -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid var(--color-panel-divider); + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; } .tsd-panel > h1.tsd-before-signature, .tsd-panel > h2.tsd-before-signature, .tsd-panel > h3.tsd-before-signature { margin-bottom: 0; - border-bottom: 0; -} -.tsd-panel table { - display: block; - width: 100%; - overflow: auto; - margin-top: 10px; - word-break: normal; - word-break: keep-all; - border-collapse: collapse; -} -.tsd-panel table th { - font-weight: bold; -} -.tsd-panel table th, -.tsd-panel table td { - padding: 6px 13px; - border: 1px solid var(--color-panel-divider); -} -.tsd-panel table tr { - background: var(--color-background); -} -.tsd-panel table tr:nth-child(even) { - background: var(--color-secondary-background); + border-bottom: none; } .tsd-panel-group { - margin: 60px 0; + margin: 4rem 0; } -.tsd-panel-group > h1, -.tsd-panel-group > h2, -.tsd-panel-group > h3 { - padding-left: 20px; - padding-right: 20px; +.tsd-panel-group.tsd-index-group { + margin: 2rem 0; +} +.tsd-panel-group.tsd-index-group details { + margin: 2rem 0; } #tsd-search { @@ -985,8 +956,8 @@ footer .tsd-legend { position: absolute; left: 0; top: 0; - right: 40px; - height: 40px; + right: 2.5rem; + height: 100%; } #tsd-search .field input { box-sizing: border-box; @@ -1025,14 +996,14 @@ footer .tsd-legend { background-color: var(--color-background); } #tsd-search .results li:nth-child(even) { - background-color: var(--color-panel); + background-color: var(--color-background-secondary); } #tsd-search .results li.state { display: none; } #tsd-search .results li.current, #tsd-search .results li:hover { - background-color: var(--color-panel-divider); + background-color: var(--color-accent); } #tsd-search .results a { display: block; @@ -1045,7 +1016,7 @@ footer .tsd-legend { font-weight: normal; } #tsd-search.has-focus { - background-color: var(--color-panel-divider); + background-color: var(--color-accent); } #tsd-search.has-focus .field input { top: 0; @@ -1066,31 +1037,13 @@ footer .tsd-legend { } .tsd-signature { - margin: 0 0 1em 0; - padding: 10px; - border: 1px solid var(--color-panel-divider); + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); font-family: Menlo, Monaco, Consolas, "Courier New", monospace; font-size: 14px; overflow-x: auto; } -.tsd-signature.tsd-kind-icon { - padding-left: 30px; -} -.tsd-signature.tsd-kind-icon:before { - top: 10px; - left: 10px; -} -.tsd-panel > .tsd-signature { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; -} -.tsd-panel > .tsd-signature.tsd-kind-icon { - padding-left: 40px; -} -.tsd-panel > .tsd-signature.tsd-kind-icon:before { - left: 20px; -} .tsd-signature-symbol { color: var(--color-text-aside); @@ -1105,104 +1058,42 @@ footer .tsd-legend { .tsd-signatures { padding: 0; margin: 0 0 1em 0; - border: 1px solid var(--color-panel-divider); + list-style-type: none; } .tsd-signatures .tsd-signature { margin: 0; - border-width: 1px 0 0 0; - transition: background-color 0.1s; -} -.tsd-signatures .tsd-signature:first-child { - border-top-width: 0; -} -.tsd-signatures .tsd-signature.current { - background-color: var(--color-panel-divider); -} -.tsd-signatures.active > .tsd-signature { - cursor: pointer; -} -.tsd-panel > .tsd-signatures { - margin-left: -20px; - margin-right: -20px; + border-color: var(--color-accent); border-width: 1px 0; + transition: background-color 0.1s; } -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { - padding-left: 40px; -} -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon:before { - left: 20px; -} -.tsd-panel > a.anchor + .tsd-signatures { - border-top-width: 0; - margin-top: -20px; +.tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; } -ul.tsd-descriptions { - position: relative; - overflow: hidden; - padding: 0; - list-style: none; -} -ul.tsd-descriptions.active > .tsd-description { - display: none; -} -ul.tsd-descriptions.active > .tsd-description.current { - display: block; -} -ul.tsd-descriptions.active > .tsd-description.fade-in { - animation: fade-in-delayed 0.3s; -} -ul.tsd-descriptions.active > .tsd-description.fade-out { - animation: fade-out-delayed 0.3s; - position: absolute; - display: block; - top: 0; - left: 0; - right: 0; - opacity: 0; - visibility: hidden; -} -ul.tsd-descriptions h4, -ul.tsd-descriptions .tsd-index-panel h3, -.tsd-index-panel ul.tsd-descriptions h3 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} - -ul.tsd-parameters, -ul.tsd-type-parameters { +ul.tsd-parameter-list, +ul.tsd-type-parameter-list { list-style: square; margin: 0; padding-left: 20px; } -ul.tsd-parameters > li.tsd-parameter-signature, -ul.tsd-type-parameters > li.tsd-parameter-signature { +ul.tsd-parameter-list > li.tsd-parameter-signature, +ul.tsd-type-parameter-list > li.tsd-parameter-signature { list-style: none; margin-left: -20px; } -ul.tsd-parameters h5, -ul.tsd-type-parameters h5 { +ul.tsd-parameter-list h5, +ul.tsd-type-parameter-list h5 { font-size: 16px; margin: 1em 0 0.5em 0; } -ul.tsd-parameters .tsd-comment, -ul.tsd-type-parameters .tsd-comment { - margin-top: -0.5em; -} - .tsd-sources { - font-size: 14px; - color: var(--color-text-aside); - margin: 0 0 1em 0; + margin-top: 1rem; + font-size: 0.875em; } .tsd-sources a { color: var(--color-text-aside); text-decoration: underline; } -.tsd-sources ul, -.tsd-sources p { - margin: 0 !important; -} .tsd-sources ul { list-style: none; padding: 0; @@ -1214,14 +1105,13 @@ ul.tsd-type-parameters .tsd-comment { top: 0; left: 0; width: 100%; - height: 40px; - color: var(--color-toolbar-text); - background: var(--color-toolbar); - border-bottom: 1px solid var(--color-panel-divider); - transition: transform 0.3s linear; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; } .tsd-page-toolbar a { - color: var(--color-toolbar-text); + color: var(--color-text); text-decoration: none; } .tsd-page-toolbar a.title { @@ -1230,13 +1120,13 @@ ul.tsd-type-parameters .tsd-comment { .tsd-page-toolbar a.title:hover { text-decoration: underline; } -.tsd-page-toolbar .table-wrap { - display: table; - width: 100%; - height: 40px; +.tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; } .tsd-page-toolbar .table-cell { - display: table-cell; position: relative; white-space: nowrap; line-height: 40px; @@ -1249,29 +1139,6 @@ ul.tsd-type-parameters .tsd-comment { transform: translateY(-100%); } -.tsd-select .tsd-select-list li:before, -.tsd-select .tsd-select-label:before, -.tsd-widget:before { - content: ""; - display: inline-block; - width: 40px; - height: 40px; - margin: 0 -8px 0 0; - background-image: url(./widgets.png); - background-repeat: no-repeat; - text-indent: -1024px; - vertical-align: bottom; - filter: var(--icon-filter); -} -@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-select .tsd-select-list li:before, - .tsd-select .tsd-select-label:before, - .tsd-widget:before { - background-image: url(./widgets@2x.png); - background-size: 320px 40px; - } -} - .tsd-widget { display: inline-block; overflow: hidden; @@ -1286,7 +1153,7 @@ ul.tsd-type-parameters .tsd-comment { } .tsd-widget.active { opacity: 1; - background-color: var(--color-panel-divider); + background-color: var(--color-accent); } .tsd-widget.no-caption { width: 40px; @@ -1294,20 +1161,12 @@ ul.tsd-type-parameters .tsd-comment { .tsd-widget.no-caption:before { margin: 0; } -.tsd-widget.search:before { - background-position: 0 0; -} -.tsd-widget.menu:before { - background-position: -40px 0; -} -.tsd-widget.options:before { - background-position: -80px 0; -} + .tsd-widget.options, .tsd-widget.menu { display: none; } -@media (max-width: 900px) { +@media (max-width: 1024px) { .tsd-widget.options, .tsd-widget.menu { display: inline-block; @@ -1320,69 +1179,47 @@ input[type="checkbox"]:checked + .tsd-widget:before { background-position: -160px 0; } -.tsd-select { - position: relative; - display: inline-block; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-select .tsd-select-label { - opacity: 0.6; - transition: opacity 0.2s; -} -.tsd-select .tsd-select-label:before { - background-position: -240px 0; -} -.tsd-select.active .tsd-select-label { - opacity: 0.8; +img { + max-width: 100%; } -.tsd-select.active .tsd-select-list { - visibility: visible; - opacity: 1; - transition-delay: 0s; + +.tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + vertical-align: middle; + color: var(--color-text); } -.tsd-select .tsd-select-list { - position: absolute; + +.tsd-anchor-icon svg { + width: 1em; + height: 1em; visibility: hidden; - top: 40px; - left: 0; - margin: 0; - padding: 0; - opacity: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); - transition: visibility 0s 0.2s, opacity 0.2s; -} -.tsd-select .tsd-select-list li { - padding: 0 20px 0 0; - background-color: var(--color-background); } -.tsd-select .tsd-select-list li:before { - background-position: 40px 0; + +.tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; } -.tsd-select .tsd-select-list li:nth-child(even) { - background-color: var(--color-panel); + +.deprecated { + text-decoration: line-through; } -.tsd-select .tsd-select-list li:hover { - background-color: var(--color-panel-divider); + +* { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); } -.tsd-select .tsd-select-list li.selected:before { - background-position: -200px 0; + +*::-webkit-scrollbar { + width: 0.75rem; } -@media (max-width: 900px) { - .tsd-select .tsd-select-list { - top: 0; - left: auto; - right: 100%; - margin-right: -5px; - } - .tsd-select .tsd-select-label:before { - background-position: -280px 0; - } + +*::-webkit-scrollbar-track { + background: var(--color-icon-background); } -img { - max-width: 100%; +*::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); } diff --git a/docs/assets/widgets.png b/docs/assets/widgets.png deleted file mode 100644 index c7380532..00000000 Binary files a/docs/assets/widgets.png and /dev/null differ diff --git a/docs/assets/widgets@2x.png b/docs/assets/widgets@2x.png deleted file mode 100644 index 4bbbd572..00000000 Binary files a/docs/assets/widgets@2x.png and /dev/null differ diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 8ff6b374..fca9252d 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,91 +1,554 @@ -AbstractWorker | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractWorker<MainWorker, Data, Response>

-

Base class containing some shared logic for all poolifier workers.

-

Type parameters

  • MainWorker: Worker | MessagePort

    -

    Type of main worker.

    -
  • Data = unknown

    -

    Type of data this worker receives from pool's execution. This can only be serializable data.

    -
  • Response = unknown

    -

    Type of response the worker sends back to the main worker. This can only be serializable data.

    -

Hierarchy

Index

Constructors

constructor

  • new AbstractWorker<MainWorker, Data, Response>(type: string, isMain: boolean, fn: (data: Data) => Response, mainWorker: undefined | null | MainWorker, opts?: WorkerOptions): AbstractWorker<MainWorker, Data, Response>
  • -

    Constructs a new poolifier worker.

    -

    Type parameters

    • MainWorker: Worker | MessagePort

    • Data = unknown

    • Response = unknown

    Parameters

    • type: string
      -

      The type of async event.

      -
    • isMain: boolean
      -

      Whether this is the main worker or not.

      -
    • fn: (data: Data) => Response
      -

      Function processed by the worker when the pool's execution function is invoked.

      -
        • (data: Data): Response
        • Parameters

          • data: Data

          Returns Response

    • mainWorker: undefined | null | MainWorker
      -

      Reference to main worker.

      -
    • opts: WorkerOptions = ...
      -

      Options for the worker.

      -

    Returns AbstractWorker<MainWorker, Data, Response>

Properties

Protected Optional Readonly aliveInterval

aliveInterval?: Timeout
-

Handler Id of the aliveInterval worker alive check.

-

Protected lastTaskTimestamp

lastTaskTimestamp: number
-

Timestamp of the last task processed by this worker.

-

Protected mainWorker

mainWorker: undefined | null | MainWorker

Readonly opts

opts: WorkerOptions = ...

Methods

asyncId

  • asyncId(): number
  • Returns number

    The unique asyncId assigned to the resource.

    -

bind

  • bind<Func>(fn: Func): Func & { asyncResource: AsyncResource }
  • -

    Binds the given function to execute to this AsyncResource's scope.

    -

    The returned function will have an asyncResource property referencing +AbstractWorker | poolifier

    +
    + +
    +
    +
    +
    + +

    Class AbstractWorker<MainWorker, Data, Response>Abstract

    +
    +

    Base class containing some shared logic for all poolifier workers.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      MainWorker extends Worker | MessagePort

      +

      Type of main worker.

      +
    • +
    • +

      Data = unknown

      +

      Type of data this worker receives from pool's execution. This can only be serializable data.

      +
    • +
    • +

      Response = unknown

      +

      Type of response the worker sends back to the main worker. This can only be serializable data.

      +
    +
    +

    Hierarchy

    +
    +
    +
    +
    + +
    +
    +

    Constructors

    +
    + +
      + +
    • +

      Constructs a new poolifier worker.

      +
      +
      +

      Type Parameters

      +
        +
      • +

        MainWorker extends Worker | MessagePort

      • +
      • +

        Data = unknown

      • +
      • +

        Response = unknown

      +
      +

      Parameters

      +
        +
      • +
        type: string
        +

        The type of async event.

        +
      • +
      • +
        isMain: boolean
        +

        Whether this is the main worker or not.

        +
      • +
      • +
        fn: ((data: Data) => Response)
        +

        Function processed by the worker when the pool's execution function is invoked.

        +
        +
          +
        • +
            +
          • (data: Data): Response
          • +
          • +
            +

            Parameters

            +
              +
            • +
              data: Data
            +

            Returns Response

      • +
      • +
        mainWorker: undefined | null | MainWorker
        +

        Reference to main worker.

        +
      • +
      • +
        opts: WorkerOptions = ...
        +

        Options for the worker.

        +
      +

      Returns AbstractWorker<MainWorker, Data, Response>

    +
    +

    Properties

    +
    + +
    aliveInterval?: Timeout
    +

    Handler Id of the aliveInterval worker alive check.

    +
    +
    + +
    lastTaskTimestamp: number
    +

    Timestamp of the last task processed by this worker.

    +
    +
    + +
    mainWorker: undefined | null | MainWorker
    +
    + + +

    Options for the worker.

    +
    +
    +

    Methods

    +
    + +
      + +
    • +
      +

      Returns

      The unique asyncId assigned to the resource.

      +
      +

      Returns number

    +
    + +
      + +
    • +

      Binds the given function to execute to this AsyncResource's scope.

      +

      The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.

      -
      since

      v14.8.0, v12.19.0

      -

    Type parameters

    • Func: (...args: any[]) => any

    Parameters

    • fn: Func
      -

      The function to bind to the current AsyncResource.

      -

    Returns Func & { asyncResource: AsyncResource }

Protected checkAlive

  • checkAlive(): void

Private checkFunctionInput

  • checkFunctionInput(fn: (data: Data) => Response): void
  • -

    Check if the fn parameter is passed to the constructor.

    -

    Parameters

    • fn: (data: Data) => Response
      -

      The function that should be defined.

      -
        • (data: Data): Response
        • Parameters

          • data: Data

          Returns Response

    Returns void

Private checkWorkerOptions

emitDestroy

  • -

    Call all destroy hooks. This should only ever be called once. An error will + +

    Since

    v14.8.0, v12.19.0

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Func extends ((...args: any[]) => any)

    +
    +

    Parameters

    +
      +
    • +
      fn: Func
      +

      The function to bind to the current AsyncResource.

      +
    +

    Returns Func & { asyncResource: AsyncResource }

+
+ +
    + +
  • +

    Check to see if the worker should be terminated, because its living too long.

    +
    +

    Returns void

+
+ +
    + +
  • +

    Check if the fn parameter is passed to the constructor.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data: Data) => Response)
      +

      The function that should be defined.

      +
      +
        +
      • +
          +
        • (data: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            data: Data
          +

          Returns Response

    +

    Returns void

+
+ +
+
+ +
    + +
  • +

    Call all destroy hooks. This should only ever be called once. An error will be thrown if it is called more than once. This must be manually called. If the resource is left to be collected by the GC then the destroy hooks will never be called.

    -

Returns AbstractWorker<MainWorker, Data, Response>

A reference to asyncResource.

-

Protected getMainWorker

  • getMainWorker(): MainWorker

Protected handleError

  • handleError(e: string | Error): string
  • -

    Handle an error and convert it to a string so it can be sent back to the main worker.

    -

    Parameters

    • e: string | Error
      -

      The error raised by the worker.

      -

    Returns string

    Message of the error.

    -

Protected run

  • run(fn: (data?: Data) => Response, value: MessageValue<Data, unknown>): void
  • -

    Run the given function synchronously.

    -

    Parameters

    • fn: (data?: Data) => Response
      -

      Function that will be executed.

      -
        • (data?: Data): Response
        • Parameters

          • Optional data: Data

          Returns Response

    • value: MessageValue<Data, unknown>
      -

      Input data for the given function.

      -

    Returns void

Protected runAsync

  • runAsync(fn: (data?: Data) => Promise<Response>, value: MessageValue<Data, unknown>): void
  • -

    Run the given function asynchronously.

    -

    Parameters

    • fn: (data?: Data) => Promise<Response>
      -

      Function that will be executed.

      -
        • (data?: Data): Promise<Response>
        • Parameters

          • Optional data: Data

          Returns Promise<Response>

    • value: MessageValue<Data, unknown>
      -

      Input data for the given function.

      -

    Returns void

runInAsyncScope

  • runInAsyncScope<This, Result>(fn: (...args: any[]) => Result, thisArg?: This, ...args: any[]): Result
  • -

    Call the provided function with the provided arguments in the execution context + +

    Returns

    A reference to asyncResource.

    +
    +

    Returns AbstractWorker<MainWorker, Data, Response>

+
+ +
    + +
  • +

    Returns the main worker.

    + +

    Returns

    Reference to the main worker.

    +
    +

    Returns MainWorker

+
+ +
    + +
  • +

    Handle an error and convert it to a string so it can be sent back to the main worker.

    + +

    Returns

    Message of the error.

    +
    +
    +

    Parameters

    +
      +
    • +
      e: string | Error
      +

      The error raised by the worker.

      +
    +

    Returns string

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      value: MessageValue<Data, MainWorker>
    • +
    • +
      fn: ((data: Data) => Response)
      +
        +
      • +
          +
        • (data: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            data: Data
          +

          Returns Response

    +

    Returns void

+
+ +
    + +
  • +

    Run the given function synchronously.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data?: Data) => Response)
      +

      Function that will be executed.

      +
      +
        +
      • +
          +
        • (data?: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            Optional data: Data
          +

          Returns Response

    • +
    • +
      value: MessageValue<Data, unknown>
      +

      Input data for the given function.

      +
    +

    Returns void

+
+ +
    + +
  • +

    Run the given function asynchronously.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data?: Data) => Promise<Response>)
      +

      Function that will be executed.

      +
      +
        +
      • +
          +
        • (data?: Data): Promise<Response>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            Optional data: Data
          +

          Returns Promise<Response>

    • +
    • +
      value: MessageValue<Data, unknown>
      +

      Input data for the given function.

      +
    +

    Returns void

+
+ +
    + +
  • +

    Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks before callbacks, call the function, trigger the AsyncHooks after callbacks, and then restore the original execution context.

    -
    since

    v9.6.0

    -

Type parameters

  • This

  • Result

Parameters

  • fn: (...args: any[]) => Result
    -

    The function to call in the execution context of this async resource.

    -
      • (...args: any[]): Result
      • Parameters

        • Rest ...args: any[]

        Returns Result

  • Optional thisArg: This
    -

    The receiver to be used for the function call.

    -
  • Rest ...args: any[]
    -

    Optional arguments to pass to the function.

    -

Returns Result

Protected Abstract sendToMainWorker

  • sendToMainWorker(message: MessageValue<Response, unknown>): void
  • -

    Send a message to the main worker.

    -

    Parameters

    • message: MessageValue<Response, unknown>
      -

      The response message.

      -

    Returns void

triggerAsyncId

  • triggerAsyncId(): number
  • Returns number

    The same triggerAsyncId that is passed to the AsyncResource constructor.

    -

Static bind

  • bind<Func, ThisArg>(fn: Func, type?: string, thisArg?: ThisArg): Func & { asyncResource: AsyncResource }
  • -

    Binds the given function to the current execution context.

    -

    The returned function will have an asyncResource property referencing + +

    Since

    v9.6.0

    +
    +
    +

    Type Parameters

    +
      +
    • +

      This

    • +
    • +

      Result

    +
    +

    Parameters

    +
      +
    • +
      fn: ((this: This, ...args: any[]) => Result)
      +

      The function to call in the execution context of this async resource.

      +
      +
        +
      • +
          +
        • (this: This, ...args: any[]): Result
        • +
        • +
          +

          Parameters

          +
            +
          • +
            this: This
          • +
          • +
            Rest ...args: any[]
          +

          Returns Result

    • +
    • +
      Optional thisArg: This
      +

      The receiver to be used for the function call.

      +
    • +
    • +
      Rest ...args: any[]
      +

      Optional arguments to pass to the function.

      +
    +

    Returns Result

+
+ +
    + +
  • +

    Send a message to the main worker.

    +
    +
    +

    Parameters

    +
      +
    • +
      message: MessageValue<Response, unknown>
      +

      The response message.

      +
    +

    Returns void

+
+ +
    + +
  • +
    +

    Returns

    The same triggerAsyncId that is passed to the AsyncResource constructor.

    +
    +

    Returns number

+
+ +
    + +
  • +

    Binds the given function to the current execution context.

    +

    The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.

    -
    since

    v14.8.0, v12.19.0

    -

Type parameters

  • Func: (...args: any[]) => any

  • ThisArg

Parameters

  • fn: Func
    -

    The function to bind to the current execution context.

    -
  • Optional type: string
    -

    An optional name to associate with the underlying AsyncResource.

    -
  • Optional thisArg: ThisArg

Returns Func & { asyncResource: AsyncResource }

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +

Since

v14.8.0, v12.19.0

+ +
+

Type Parameters

+
    +
  • +

    Func extends ((this: ThisArg, ...args: any[]) => any)

  • +
  • +

    ThisArg

+
+

Parameters

+
    +
  • +
    fn: Func
    +

    The function to bind to the current execution context.

    +
  • +
  • +
    Optional type: string
    +

    An optional name to associate with the underlying AsyncResource.

    +
  • +
  • +
    Optional thisArg: ThisArg
+

Returns Func & { asyncResource: AsyncResource }

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index ea6c5d88..a6fc7d3c 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,83 +1,507 @@ -ClusterWorker | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClusterWorker<Data, Response>

-

A cluster worker used by a poolifier ClusterPool.

-

When this worker is inactive for more than the given maxInactiveTime, +ClusterWorker | poolifier

+
+ +
+
+
+
+ +

Class ClusterWorker<Data, Response>

+
+

A cluster worker used by a poolifier ClusterPool.

+

When this worker is inactive for more than the given maxInactiveTime, it will send a termination request to its main worker.

If you use a DynamicClusterPool the extra workers that were created will be terminated, but the minimum number of workers will be guaranteed.

-
template DataType

of data this worker receives from pool's execution. This can only be serializable data.

-
template ResponseType

of response the worker sends back to the main worker. This can only be serializable data.

-
author

Christopher Quadflieg

-
since

2.0.0

-

Type parameters

  • Data = unknown

  • Response = unknown

Hierarchy

Index

Constructors

constructor

  • -

    Constructs a new poolifier cluster worker.

    -

    Type parameters

    • Data = unknown

    • Response = unknown

    Parameters

    • fn: (data: Data) => Response
      -

      Function processed by the worker when the pool's execution function is invoked.

      -
        • (data: Data): Response
        • Parameters

          • data: Data

          Returns Response

    • opts: WorkerOptions = {}
      -

      Options for the worker.

      -

    Returns ClusterWorker<Data, Response>

Properties

Protected Optional Readonly aliveInterval

aliveInterval?: Timeout
-

Handler Id of the aliveInterval worker alive check.

-

Protected lastTaskTimestamp

lastTaskTimestamp: number
-

Timestamp of the last task processed by this worker.

-

Protected mainWorker

mainWorker: undefined | null | Worker

Readonly opts

opts: WorkerOptions = ...

Methods

asyncId

  • asyncId(): number
  • Returns number

    The unique asyncId assigned to the resource.

    -

bind

  • bind<Func>(fn: Func): Func & { asyncResource: AsyncResource }
  • -

    Binds the given function to execute to this AsyncResource's scope.

    -

    The returned function will have an asyncResource property referencing + +

    Template

    of data this worker receives from pool's execution. This can only be serializable data.

    + +

    Template

    of response the worker sends back to the main worker. This can only be serializable data.

    + +

    Author

    Christopher Quadflieg

    + +

    Since

    2.0.0

    +
+
+

Type Parameters

+
    +
  • +

    Data = unknown

  • +
  • +

    Response = unknown

+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +

    Constructs a new poolifier cluster worker.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Data = unknown

    • +
    • +

      Response = unknown

    +
    +

    Parameters

    +
      +
    • +
      fn: ((data: Data) => Response)
      +

      Function processed by the worker when the pool's execution function is invoked.

      +
      +
        +
      • +
          +
        • (data: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            data: Data
          +

          Returns Response

    • +
    • +
      opts: WorkerOptions = {}
      +

      Options for the worker.

      +
    +

    Returns ClusterWorker<Data, Response>

+
+

Properties

+
+ +
aliveInterval?: Timeout
+

Handler Id of the aliveInterval worker alive check.

+
+
+ +
lastTaskTimestamp: number
+

Timestamp of the last task processed by this worker.

+
+
+ +
mainWorker: undefined | null | Worker
+
+ + +

Options for the worker.

+
+
+

Methods

+
+ +
    + +
  • +
    +

    Returns

    The unique asyncId assigned to the resource.

    +
    +

    Returns number

+
+ +
    + +
  • +

    Binds the given function to execute to this AsyncResource's scope.

    +

    The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.

    -
    since

    v14.8.0, v12.19.0

    -

Type parameters

  • Func: (...args: any[]) => any

Parameters

  • fn: Func
    -

    The function to bind to the current AsyncResource.

    -

Returns Func & { asyncResource: AsyncResource }

Protected checkAlive

  • checkAlive(): void

emitDestroy

  • -

    Call all destroy hooks. This should only ever be called once. An error will + +

    Since

    v14.8.0, v12.19.0

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Func extends ((...args: any[]) => any)

    +
    +

    Parameters

    +
      +
    • +
      fn: Func
      +

      The function to bind to the current AsyncResource.

      +
    +

    Returns Func & { asyncResource: AsyncResource }

+
+ +
+
+ +
    + +
  • +

    Call all destroy hooks. This should only ever be called once. An error will be thrown if it is called more than once. This must be manually called. If the resource is left to be collected by the GC then the destroy hooks will never be called.

    -

Returns ClusterWorker<Data, Response>

A reference to asyncResource.

-

Protected getMainWorker

  • getMainWorker(): Worker

Protected handleError

  • handleError(e: string | Error): string

Protected run

  • run(fn: (data?: Data) => Response, value: MessageValue<Data, unknown>): void
  • -

    Run the given function synchronously.

    -

    Parameters

    • fn: (data?: Data) => Response
      -

      Function that will be executed.

      -
        • (data?: Data): Response
        • Parameters

          • Optional data: Data

          Returns Response

    • value: MessageValue<Data, unknown>
      -

      Input data for the given function.

      -

    Returns void

Protected runAsync

  • runAsync(fn: (data?: Data) => Promise<Response>, value: MessageValue<Data, unknown>): void
  • -

    Run the given function asynchronously.

    -

    Parameters

    • fn: (data?: Data) => Promise<Response>
      -

      Function that will be executed.

      -
        • (data?: Data): Promise<Response>
        • Parameters

          • Optional data: Data

          Returns Promise<Response>

    • value: MessageValue<Data, unknown>
      -

      Input data for the given function.

      -

    Returns void

runInAsyncScope

  • runInAsyncScope<This, Result>(fn: (...args: any[]) => Result, thisArg?: This, ...args: any[]): Result
  • -

    Call the provided function with the provided arguments in the execution context + +

    Returns

    A reference to asyncResource.

    +
    +

    Returns ClusterWorker<Data, Response>

+
+ +
+
+ +
    + +
  • +

    Handle an error and convert it to a string so it can be sent back to the main worker.

    + +

    Returns

    Message of the error.

    +
    +
    +

    Parameters

    +
      +
    • +
      e: string | Error
      +

      The error raised by the worker.

      +
    +

    Returns string

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      value: MessageValue<Data, Worker>
    • +
    • +
      fn: ((data: Data) => Response)
      +
        +
      • +
          +
        • (data: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            data: Data
          +

          Returns Response

    +

    Returns void

+
+ +
    + +
  • +

    Run the given function synchronously.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data?: Data) => Response)
      +

      Function that will be executed.

      +
      +
        +
      • +
          +
        • (data?: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            Optional data: Data
          +

          Returns Response

    • +
    • +
      value: MessageValue<Data, unknown>
      +

      Input data for the given function.

      +
    +

    Returns void

+
+ +
    + +
  • +

    Run the given function asynchronously.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data?: Data) => Promise<Response>)
      +

      Function that will be executed.

      +
      +
        +
      • +
          +
        • (data?: Data): Promise<Response>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            Optional data: Data
          +

          Returns Promise<Response>

    • +
    • +
      value: MessageValue<Data, unknown>
      +

      Input data for the given function.

      +
    +

    Returns void

+
+ +
    + +
  • +

    Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks before callbacks, call the function, trigger the AsyncHooks after callbacks, and then restore the original execution context.

    -
    since

    v9.6.0

    -

Type parameters

  • This

  • Result

Parameters

  • fn: (...args: any[]) => Result
    -

    The function to call in the execution context of this async resource.

    -
      • (...args: any[]): Result
      • Parameters

        • Rest ...args: any[]

        Returns Result

  • Optional thisArg: This
    -

    The receiver to be used for the function call.

    -
  • Rest ...args: any[]
    -

    Optional arguments to pass to the function.

    -

Returns Result

Protected sendToMainWorker

  • sendToMainWorker(message: MessageValue<Response, unknown>): void

triggerAsyncId

  • triggerAsyncId(): number
  • Returns number

    The same triggerAsyncId that is passed to the AsyncResource constructor.

    -

Static bind

  • bind<Func, ThisArg>(fn: Func, type?: string, thisArg?: ThisArg): Func & { asyncResource: AsyncResource }
  • -

    Binds the given function to the current execution context.

    -

    The returned function will have an asyncResource property referencing + +

    Since

    v9.6.0

    +
    +
    +

    Type Parameters

    +
      +
    • +

      This

    • +
    • +

      Result

    +
    +

    Parameters

    +
      +
    • +
      fn: ((this: This, ...args: any[]) => Result)
      +

      The function to call in the execution context of this async resource.

      +
      +
        +
      • +
          +
        • (this: This, ...args: any[]): Result
        • +
        • +
          +

          Parameters

          +
            +
          • +
            this: This
          • +
          • +
            Rest ...args: any[]
          +

          Returns Result

    • +
    • +
      Optional thisArg: This
      +

      The receiver to be used for the function call.

      +
    • +
    • +
      Rest ...args: any[]
      +

      Optional arguments to pass to the function.

      +
    +

    Returns Result

+
+ +
+
+ +
    + +
  • +
    +

    Returns

    The same triggerAsyncId that is passed to the AsyncResource constructor.

    +
    +

    Returns number

+
+ +
    + +
  • +

    Binds the given function to the current execution context.

    +

    The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.

    -
    since

    v14.8.0, v12.19.0

    -

    Type parameters

    • Func: (...args: any[]) => any

    • ThisArg

    Parameters

    • fn: Func
      -

      The function to bind to the current execution context.

      -
    • Optional type: string
      -

      An optional name to associate with the underlying AsyncResource.

      -
    • Optional thisArg: ThisArg

    Returns Func & { asyncResource: AsyncResource }

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +

Since

v14.8.0, v12.19.0

+ +
+

Type Parameters

+
    +
  • +

    Func extends ((this: ThisArg, ...args: any[]) => any)

  • +
  • +

    ThisArg

+
+

Parameters

+
    +
  • +
    fn: Func
    +

    The function to bind to the current execution context.

    +
  • +
  • +
    Optional type: string
    +

    An optional name to associate with the underlying AsyncResource.

    +
  • +
  • +
    Optional thisArg: ThisArg
+

Returns Func & { asyncResource: AsyncResource }

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 50217700..80576199 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,54 +1,653 @@ -DynamicClusterPool | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamicClusterPool<Data, Response>

-

A cluster pool with a dynamic number of workers, but a guaranteed minimum number of workers.

-

This cluster pool creates new workers when the others are busy, up to the maximum number of workers. +DynamicClusterPool | poolifier

+
+ +
+
+
+
+ +

Class DynamicClusterPool<Data, Response>

+
+

A cluster pool with a dynamic number of workers, but a guaranteed minimum number of workers.

+

This cluster pool creates new workers when the others are busy, up to the maximum number of workers. When the maximum number of workers is reached, an event is emitted. If you want to listen to this event, use the pool's emitter.

-
template DataType

of data sent to the worker. This can only be serializable data.

-
template ResponseType

of response of execution. This can only be serializable data.

-
author

Christopher Quadflieg

-
since

2.0.0

-

Type parameters

  • Data = unknown

  • Response = unknown

Hierarchy

Index

Constructors

constructor

  • -

    Constructs a new poolifier dynamic cluster pool.

    -

    Type parameters

    • Data = unknown

    • Response = unknown

    Parameters

    • min: number
      -

      Minimum number of workers which are always active.

      -
    • max: number
      -

      Maximum number of workers that can be created by this pool.

      -
    • filePath: string
      -

      Path to an implementation of a ClusterWorker file, which can be relative or absolute.

      -
    • opts: ClusterPoolOptions = {}

    Returns DynamicClusterPool<Data, Response>

Properties

Optional Readonly emitter

emitter?: PoolEmitter

Readonly filePath

filePath: string

Readonly max

max: number

Protected nextMessageId

nextMessageId: number = 0
-

Id of the next message.

-

Readonly numberOfWorkers

numberOfWorkers: number

Readonly opts

Protected promiseMap

promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
-

The promise map.

-
    + +

    Template

    of data sent to the worker. This can only be serializable data.

    + +

    Template

    of response of execution. This can only be serializable data.

    + +

    Author

    Christopher Quadflieg

    + +

    Since

    2.0.0

    +
+
+

Type Parameters

+
    +
  • +

    Data = unknown

  • +
  • +

    Response = unknown

+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +

    Constructs a new poolifier dynamic cluster pool.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Data = unknown

    • +
    • +

      Response = unknown

    +
    +

    Parameters

    +
      +
    • +
      min: number
      +

      Minimum number of workers which are always active.

      +
    • +
    • +
      max: number
      +

      Maximum number of workers that can be created by this pool.

      +
    • +
    • +
      filePath: string
      +

      Path to an implementation of a ClusterWorker file, which can be relative or absolute.

      +
    • +
    • +
      Optional opts: ClusterPoolOptions = {}
      +

      Options for this dynamic cluster pool.

      +
    +

    Returns DynamicClusterPool<Data, Response>

+
+

Properties

+
+ +
emitter?: PoolEmitter
+
+

Inherit Doc

+
+ +
filePath: string
+
+ +
max: number
+
+

Inherit Doc

+
+ +
nextMessageId: number = 0
+

Id of the next message.

+
+
+ +
numberOfWorkers: number
+
+ +
+
+ +
promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
+

The promise map.

+
  • key: This is the message Id of each submitted task.
  • value: An object that contains the worker, the resolve function and the reject function.

When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

-

Readonly tasks

tasks: Map<Worker, number> = ...

Protected workerChoiceStrategyContext

workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
-

Worker choice strategy instance implementing the worker choice algorithm.

-

Default to a strategy implementing a round robin algorithm.

-

Readonly workers

workers: Worker[] = []

Accessors

busy

  • get busy(): boolean

numberOfRunningTasks

  • get numberOfRunningTasks(): number

type

  • get type(): PoolType

Methods

Protected afterWorkerSetup

  • afterWorkerSetup(worker: Worker): void

Protected chooseWorker

  • chooseWorker(): Worker

Protected createAndSetupWorker

  • createAndSetupWorker(): Worker

Protected createWorker

  • createWorker(): Worker

Protected decreaseWorkersTasks

  • decreaseWorkersTasks(worker: Worker): void

destroy

  • destroy(): Promise<void>

destroyWorker

  • destroyWorker(worker: Worker): void

execute

  • execute(data: Data): Promise<Response>

findFreeTasksMapEntry

  • findFreeTasksMapEntry(): false | [Worker, number]

Protected increaseWorkersTask

  • increaseWorkersTask(worker: Worker): void

Protected internalExecute

  • internalExecute(worker: Worker, messageId: number): Promise<Response>

Protected internalGetBusyStatus

  • internalGetBusyStatus(): boolean

Protected isMain

  • isMain(): boolean

registerWorkerMessageListener

  • registerWorkerMessageListener<Message>(worker: Worker, listener: (message: MessageValue<Message, unknown>) => void): void

Protected removeWorker

  • removeWorker(worker: Worker): void

Protected sendToWorker

  • sendToWorker(worker: Worker, message: MessageValue<Data, unknown>): void

setWorkerChoiceStrategy

  • setWorkerChoiceStrategy(workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"): void

Protected setupHook

  • setupHook(): void

Protected workerListener

  • workerListener(): (message: MessageValue<Response, unknown>) => void
  • -

    This function is the listener registered for each worker.

    -

    Returns (message: MessageValue<Response, unknown>) => void

    The listener function to execute when a message is sent from a worker.

    -
      • (message: MessageValue<Response, unknown>): void
      • -

        This function is the listener registered for each worker.

        -

        Parameters

        • message: MessageValue<Response, unknown>

        Returns void

        The listener function to execute when a message is sent from a worker.

        -

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +
+ +
tasks: Map<Worker, number> = ...
+
+

Inherit Doc

+
+ +
workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
+

Worker choice strategy instance implementing the worker choice algorithm.

+

Default to a strategy implementing a round robin algorithm.

+
+
+ +
workers: Worker[] = []
+
+

Inherit Doc

+
+

Accessors

+
+ +
+
+ +
    +
  • get numberOfRunningTasks(): number
  • +
  • +
    +

    Inherit Doc

    +

    Returns number

+
+ +
+
+

Methods

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Type Parameters

    +
      +
    • +

      Message

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    • +
    • +
      listener: ((message: MessageValue<Message, unknown>) => void)
      +
        +
      • +
          +
        • (message: MessageValue<Message, unknown>): void
        • +
        • +
          +

          Parameters

          +
            +
          • +
            message: MessageValue<Message, unknown>
          +

          Returns void

    +

    Returns void

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
    + +
  • +

    This function is the listener registered for each worker.

    + +

    Returns

    The listener function to execute when a message is received from a worker.

    +
    +

    Returns ((message: MessageValue<Response, unknown>) => void)

    +
      +
    • +
        +
      • (message: MessageValue<Response, unknown>): void
      • +
      • +

        This function is the listener registered for each worker.

        + +

        Returns

        The listener function to execute when a message is received from a worker.

        +
        +
        +

        Parameters

        +
          +
        • +
          message: MessageValue<Response, unknown>
        +

        Returns void

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 6910150b..f4a91ae8 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -1,57 +1,654 @@ -DynamicThreadPool | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DynamicThreadPool<Data, Response>

-

A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.

-

This thread pool creates new threads when the others are busy, up to the maximum number of threads. +DynamicThreadPool | poolifier

+
+ +
+
+
+
+ +

Class DynamicThreadPool<Data, Response>

+
+

A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.

+

This thread pool creates new threads when the others are busy, up to the maximum number of threads. When the maximum number of threads is reached, an event is emitted. If you want to listen to this event, use the pool's emitter.

-
template DataType

of data sent to the worker. This can only be serializable data.

-
template ResponseType

of response of execution. This can only be serializable data.

-
author

Alessandro Pio Ardizio

-
since

0.0.1

-

Type parameters

  • Data = unknown

  • Response = unknown

Hierarchy

Index

Constructors

constructor

Properties

Optional Readonly emitter

emitter?: PoolEmitter

Readonly filePath

filePath: string

Readonly max

max: number

Protected nextMessageId

nextMessageId: number = 0
-

Id of the next message.

-

Readonly numberOfWorkers

numberOfWorkers: number

Readonly opts

Protected promiseMap

promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
-

The promise map.

-
    + +

    Template

    of data sent to the worker. This can only be serializable data.

    + +

    Template

    of response of execution. This can only be serializable data.

    + +

    Author

    Alessandro Pio Ardizio

    + +

    Since

    0.0.1

    +
+
+

Type Parameters

+
    +
  • +

    Data = unknown

  • +
  • +

    Response = unknown

+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+ +
+
+

Properties

+
+ +
emitter?: PoolEmitter
+
+

Inherit Doc

+
+ +
filePath: string
+
+ +
max: number
+
+

Inherit Doc

+
+ +
nextMessageId: number = 0
+

Id of the next message.

+
+
+ +
numberOfWorkers: number
+
+ +
+
+ +
promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
+

The promise map.

+
  • key: This is the message Id of each submitted task.
  • value: An object that contains the worker, the resolve function and the reject function.

When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

-

Readonly tasks

tasks: Map<ThreadWorkerWithMessageChannel, number> = ...

Protected workerChoiceStrategyContext

workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
-

Worker choice strategy instance implementing the worker choice algorithm.

-

Default to a strategy implementing a round robin algorithm.

-

Readonly workers

Accessors

busy

  • get busy(): boolean

numberOfRunningTasks

  • get numberOfRunningTasks(): number

type

  • get type(): PoolType

Methods

Protected afterWorkerSetup

Protected chooseWorker

Protected createAndSetupWorker

Protected createWorker

Protected decreaseWorkersTasks

destroy

  • destroy(): Promise<void>

destroyWorker

execute

  • execute(data: Data): Promise<Response>

findFreeTasksMapEntry

Protected increaseWorkersTask

Protected internalExecute

Protected internalGetBusyStatus

  • internalGetBusyStatus(): boolean

Protected isMain

  • isMain(): boolean

registerWorkerMessageListener

  • registerWorkerMessageListener<Message>(messageChannel: ThreadWorkerWithMessageChannel, listener: (message: MessageValue<Message, unknown>) => void): void

Protected removeWorker

Protected sendToWorker

setWorkerChoiceStrategy

  • setWorkerChoiceStrategy(workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"): void

Protected setupHook

  • setupHook(): void
+
+ +
tasks: Map<ThreadWorkerWithMessageChannel, number> = ...
+
+

Inherit Doc

+
+ +
workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
+

Worker choice strategy instance implementing the worker choice algorithm.

+

Default to a strategy implementing a round robin algorithm.

+
+
+ + +
+

Inherit Doc

+
+

Accessors

+
+ +
+
+ +
    +
  • get numberOfRunningTasks(): number
  • +
  • +
    +

    Inherit Doc

    +

    Returns number

+
+ +
+
+

Methods

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
    + +
  • +

    Setup hook that can be overridden by a Poolifier pool implementation to run code before workers are created in the abstract constructor.

    -

Returns void

Protected workerListener

  • workerListener(): (message: MessageValue<Response, unknown>) => void
  • -

    This function is the listener registered for each worker.

    -

    Returns (message: MessageValue<Response, unknown>) => void

    The listener function to execute when a message is sent from a worker.

    -
      • (message: MessageValue<Response, unknown>): void
      • -

        This function is the listener registered for each worker.

        -

        Parameters

        • message: MessageValue<Response, unknown>

        Returns void

        The listener function to execute when a message is sent from a worker.

        -

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +

Returns void

+
+ +
    + +
  • +

    This function is the listener registered for each worker.

    + +

    Returns

    The listener function to execute when a message is received from a worker.

    +
    +

    Returns ((message: MessageValue<Response, unknown>) => void)

    +
      +
    • +
        +
      • (message: MessageValue<Response, unknown>): void
      • +
      • +

        This function is the listener registered for each worker.

        + +

        Returns

        The listener function to execute when a message is received from a worker.

        +
        +
        +

        Parameters

        +
          +
        • +
          message: MessageValue<Response, unknown>
        +

        Returns void

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 7a604f57..8b00a031 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,52 +1,651 @@ -FixedClusterPool | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FixedClusterPool<Data, Response>

-

A cluster pool with a fixed number of workers.

-

It is possible to perform tasks in sync or asynchronous mode as you prefer.

+FixedClusterPool | poolifier
+
+ +
+
+
+
+ +

Class FixedClusterPool<Data, Response>

+
+

A cluster pool with a fixed number of workers.

+

It is possible to perform tasks in sync or asynchronous mode as you prefer.

This pool selects the workers in a round robin fashion.

-
template DataType

of data sent to the worker. This can only be serializable data.

-
template ResponseType

of response of execution. This can only be serializable data.

-
author

Christopher Quadflieg

-
since

2.0.0

-

Type parameters

  • Data = unknown

  • Response = unknown

Hierarchy

Index

Constructors

constructor

  • -

    Constructs a new poolifier fixed cluster pool.

    -

    Type parameters

    • Data = unknown

    • Response = unknown

    Parameters

    • numberOfWorkers: number
      -

      Number of workers for this pool.

      -
    • filePath: string
      -

      Path to an implementation of a ClusterWorker file, which can be relative or absolute.

      -
    • opts: ClusterPoolOptions = {}

    Returns FixedClusterPool<Data, Response>

Properties

Optional Readonly emitter

emitter?: PoolEmitter
inheritdoc

Readonly filePath

filePath: string

Optional Readonly max

max?: number
inheritdoc

Protected nextMessageId

nextMessageId: number = 0
-

Id of the next message.

-

Readonly numberOfWorkers

numberOfWorkers: number

Readonly opts

Protected promiseMap

promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
-

The promise map.

-
    + +

    Template

    of data sent to the worker. This can only be serializable data.

    + +

    Template

    of response of execution. This can only be serializable data.

    + +

    Author

    Christopher Quadflieg

    + +

    Since

    2.0.0

    +
+
+

Type Parameters

+
    +
  • +

    Data = unknown

  • +
  • +

    Response = unknown

+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +

    Constructs a new poolifier fixed cluster pool.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Data = unknown

    • +
    • +

      Response = unknown

    +
    +

    Parameters

    +
      +
    • +
      numberOfWorkers: number
      +

      Number of workers for this pool.

      +
    • +
    • +
      filePath: string
      +

      Path to an implementation of a ClusterWorker file, which can be relative or absolute.

      +
    • +
    • +
      Optional opts: ClusterPoolOptions = {}
      +

      Options for this fixed cluster pool.

      +
    +

    Returns FixedClusterPool<Data, Response>

+
+

Properties

+
+ +
emitter?: PoolEmitter
+
+

Inherit Doc

+
+ +
filePath: string
+
+ +
max?: number
+
+

Inherit Doc

+
+ +
nextMessageId: number = 0
+

Id of the next message.

+
+
+ +
numberOfWorkers: number
+
+ +
+
+ +
promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
+

The promise map.

+
  • key: This is the message Id of each submitted task.
  • value: An object that contains the worker, the resolve function and the reject function.

When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

-

Readonly tasks

tasks: Map<Worker, number> = ...
inheritdoc

Protected workerChoiceStrategyContext

workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
-

Worker choice strategy instance implementing the worker choice algorithm.

-

Default to a strategy implementing a round robin algorithm.

-

Readonly workers

workers: Worker[] = []
inheritdoc

Accessors

busy

  • get busy(): boolean

numberOfRunningTasks

  • get numberOfRunningTasks(): number

type

  • get type(): PoolType

Methods

Protected afterWorkerSetup

  • afterWorkerSetup(worker: Worker): void

Protected chooseWorker

  • chooseWorker(): Worker
  • -

    Choose a worker for the next task.

    -

    The default implementation uses a round robin algorithm to distribute the load.

    -

    Returns Worker

    Worker.

    -

Protected createAndSetupWorker

  • createAndSetupWorker(): Worker
  • -

    Creates a new worker for this pool and sets it up completely.

    -

    Returns Worker

    New, completely set up worker.

    -

Protected createWorker

  • createWorker(): Worker

Protected decreaseWorkersTasks

  • decreaseWorkersTasks(worker: Worker): void
  • -

    Decrease the number of tasks that the given worker has applied.

    -

    Parameters

    • worker: Worker
      -

      Worker whose tasks are decreased.

      -

    Returns void

destroy

  • destroy(): Promise<void>

destroyWorker

  • destroyWorker(worker: Worker): void

execute

  • execute(data: Data): Promise<Response>

findFreeTasksMapEntry

  • findFreeTasksMapEntry(): false | [Worker, number]

Protected increaseWorkersTask

  • increaseWorkersTask(worker: Worker): void
  • -

    Increase the number of tasks that the given worker has applied.

    -

    Parameters

    • worker: Worker
      -

      Worker whose tasks are increased.

      -

    Returns void

Protected internalExecute

  • internalExecute(worker: Worker, messageId: number): Promise<Response>
  • Parameters

    • worker: Worker
    • messageId: number

    Returns Promise<Response>

Protected internalGetBusyStatus

  • internalGetBusyStatus(): boolean

Protected isMain

  • isMain(): boolean

registerWorkerMessageListener

  • registerWorkerMessageListener<Message>(worker: Worker, listener: (message: MessageValue<Message, unknown>) => void): void
  • inheritdoc

    Type parameters

    • Message

    Parameters

    • worker: Worker
    • listener: (message: MessageValue<Message, unknown>) => void
        • (message: MessageValue<Message, unknown>): void
        • Parameters

          • message: MessageValue<Message, unknown>

          Returns void

    Returns void

Protected removeWorker

  • removeWorker(worker: Worker): void
  • -

    Removes the given worker from the pool.

    -

    Parameters

    • worker: Worker
      -

      Worker that will be removed.

      -

    Returns void

Protected sendToWorker

  • sendToWorker(worker: Worker, message: MessageValue<Data, unknown>): void
  • inheritdoc

    Parameters

    • worker: Worker
    • message: MessageValue<Data, unknown>

    Returns void

setWorkerChoiceStrategy

  • setWorkerChoiceStrategy(workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"): void
  • inheritdoc

    Parameters

    • workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"

    Returns void

Protected setupHook

  • setupHook(): void

Protected workerListener

  • workerListener(): (message: MessageValue<Response, unknown>) => void
  • -

    This function is the listener registered for each worker.

    -

    Returns (message: MessageValue<Response, unknown>) => void

    The listener function to execute when a message is sent from a worker.

    -
      • (message: MessageValue<Response, unknown>): void
      • -

        This function is the listener registered for each worker.

        -

        Parameters

        • message: MessageValue<Response, unknown>

        Returns void

        The listener function to execute when a message is sent from a worker.

        -

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +
+ +
tasks: Map<Worker, number> = ...
+
+

Inherit Doc

+
+ +
workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
+

Worker choice strategy instance implementing the worker choice algorithm.

+

Default to a strategy implementing a round robin algorithm.

+
+
+ +
workers: Worker[] = []
+
+

Inherit Doc

+
+

Accessors

+
+ +
+
+ +
    +
  • get numberOfRunningTasks(): number
  • +
  • +
    +

    Inherit Doc

    +

    Returns number

+
+ +
+
+

Methods

+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    +

    Returns void

+
+ +
    + +
  • +

    Choose a worker for the next task.

    +

    The default implementation uses a round robin algorithm to distribute the load.

    + +

    Returns

    Worker.

    +
    +

    Returns Worker

+
+ +
    + +
  • +

    Creates a new worker for this pool and sets it up completely.

    + +

    Returns

    New, completely set up worker.

    +
    +

    Returns Worker

+
+ +
+
+ +
    + +
  • +

    Decrease the number of tasks that the given worker has applied.

    +
    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
      +

      Worker whose tasks are decreased.

      +
    +

    Returns void

+
+ +
+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    +

    Returns void

+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      data: Data
    +

    Returns Promise<Response>

+
+ +
    + +
  • +
    +

    Inherit Doc

    +

    Returns false | Worker

+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    +

    Returns number

+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    +

    Returns undefined | number

+
+ +
    + +
  • +

    Increase the number of tasks that the given worker has applied.

    +
    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
      +

      Worker whose tasks are increased.

      +
    +

    Returns void

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    • +
    • +
      messageId: number
    +

    Returns Promise<Response>

+
+ +
+
+ +
+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Type Parameters

    +
      +
    • +

      Message

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    • +
    • +
      listener: ((message: MessageValue<Message, unknown>) => void)
      +
        +
      • +
          +
        • (message: MessageValue<Message, unknown>): void
        • +
        • +
          +

          Parameters

          +
            +
          • +
            message: MessageValue<Message, unknown>
          +

          Returns void

    +

    Returns void

+
+ +
    + +
  • +

    Removes the given worker from the pool.

    +
    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
      +

      Worker that will be removed.

      +
    +

    Returns void

+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      worker: Worker
    • +
    • +
      message: MessageValue<Data, unknown>
    +

    Returns void

+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
    +

    Returns void

+
+ +
+
+ +
    + +
  • +

    This function is the listener registered for each worker.

    + +

    Returns

    The listener function to execute when a message is received from a worker.

    +
    +

    Returns ((message: MessageValue<Response, unknown>) => void)

    +
      +
    • +
        +
      • (message: MessageValue<Response, unknown>): void
      • +
      • +

        This function is the listener registered for each worker.

        + +

        Returns

        The listener function to execute when a message is received from a worker.

        +
        +
        +

        Parameters

        +
          +
        • +
          message: MessageValue<Response, unknown>
        +

        Returns void

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/classes/FixedThreadPool.html b/docs/classes/FixedThreadPool.html index de188c51..37e27dbf 100644 --- a/docs/classes/FixedThreadPool.html +++ b/docs/classes/FixedThreadPool.html @@ -1,55 +1,652 @@ -FixedThreadPool | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FixedThreadPool<Data, Response>

-

A thread pool with a fixed number of threads.

-

It is possible to perform tasks in sync or asynchronous mode as you prefer.

+FixedThreadPool | poolifier
+
+ +
+
+
+
+ +

Class FixedThreadPool<Data, Response>

+
+

A thread pool with a fixed number of threads.

+

It is possible to perform tasks in sync or asynchronous mode as you prefer.

This pool selects the threads in a round robin fashion.

-
template DataType

of data sent to the worker. This can only be serializable data.

-
template ResponseType

of response of execution. This can only be serializable data.

-
author

Alessandro Pio Ardizio

-
since

0.0.1

-

Type parameters

  • Data = unknown

  • Response = unknown

Hierarchy

Index

Constructors

constructor

  • -

    Constructs a new poolifier fixed thread pool.

    -

    Type parameters

    • Data = unknown

    • Response = unknown

    Parameters

    • numberOfThreads: number
      -

      Number of threads for this pool.

      -
    • filePath: string
      -

      Path to an implementation of a ThreadWorker file, which can be relative or absolute.

      -
    • opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}

    Returns FixedThreadPool<Data, Response>

Properties

Optional Readonly emitter

emitter?: PoolEmitter
inheritdoc

Readonly filePath

filePath: string

Optional Readonly max

max?: number
inheritdoc

Protected nextMessageId

nextMessageId: number = 0
-

Id of the next message.

-

Readonly numberOfWorkers

numberOfWorkers: number

Readonly opts

Protected promiseMap

promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
-

The promise map.

-
    + +

    Template

    of data sent to the worker. This can only be serializable data.

    + +

    Template

    of response of execution. This can only be serializable data.

    + +

    Author

    Alessandro Pio Ardizio

    + +

    Since

    0.0.1

    +
+
+

Type Parameters

+
    +
  • +

    Data = unknown

  • +
  • +

    Response = unknown

+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +

    Constructs a new poolifier fixed thread pool.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Data = unknown

    • +
    • +

      Response = unknown

    +
    +

    Parameters

    +
      +
    • +
      numberOfThreads: number
      +

      Number of threads for this pool.

      +
    • +
    • +
      filePath: string
      +

      Path to an implementation of a ThreadWorker file, which can be relative or absolute.

      +
    • +
    • +
      Optional opts: PoolOptions<ThreadWorkerWithMessageChannel> = {}
      +

      Options for this fixed thread pool.

      +
    +

    Returns FixedThreadPool<Data, Response>

+
+

Properties

+
+ +
emitter?: PoolEmitter
+
+

Inherit Doc

+
+ +
filePath: string
+
+ +
max?: number
+
+

Inherit Doc

+
+ +
nextMessageId: number = 0
+

Id of the next message.

+
+
+ +
numberOfWorkers: number
+
+ +
+
+ +
promiseMap: Map<number, PromiseWorkerResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
+

The promise map.

+
  • key: This is the message Id of each submitted task.
  • value: An object that contains the worker, the resolve function and the reject function.

When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

-

Readonly tasks

tasks: Map<ThreadWorkerWithMessageChannel, number> = ...
inheritdoc

Protected workerChoiceStrategyContext

workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
-

Worker choice strategy instance implementing the worker choice algorithm.

-

Default to a strategy implementing a round robin algorithm.

-

Readonly workers

inheritdoc

Accessors

busy

  • get busy(): boolean

numberOfRunningTasks

  • get numberOfRunningTasks(): number

type

  • get type(): PoolType

Methods

Protected afterWorkerSetup

Protected chooseWorker

Protected createAndSetupWorker

Protected createWorker

Protected decreaseWorkersTasks

destroy

  • destroy(): Promise<void>

destroyWorker

execute

  • execute(data: Data): Promise<Response>

findFreeTasksMapEntry

Protected increaseWorkersTask

Protected internalExecute

Protected internalGetBusyStatus

  • internalGetBusyStatus(): boolean

Protected isMain

  • isMain(): boolean

registerWorkerMessageListener

  • registerWorkerMessageListener<Message>(messageChannel: ThreadWorkerWithMessageChannel, listener: (message: MessageValue<Message, unknown>) => void): void
  • inheritdoc

    Type parameters

    • Message

    Parameters

    • messageChannel: ThreadWorkerWithMessageChannel
    • listener: (message: MessageValue<Message, unknown>) => void
        • (message: MessageValue<Message, unknown>): void
        • Parameters

          • message: MessageValue<Message, unknown>

          Returns void

    Returns void

Protected removeWorker

Protected sendToWorker

setWorkerChoiceStrategy

  • setWorkerChoiceStrategy(workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"): void
  • inheritdoc

    Parameters

    • workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"

    Returns void

Protected setupHook

  • setupHook(): void
+
+ +
tasks: Map<ThreadWorkerWithMessageChannel, number> = ...
+
+

Inherit Doc

+
+ +
workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
+

Worker choice strategy instance implementing the worker choice algorithm.

+

Default to a strategy implementing a round robin algorithm.

+
+
+ + +
+

Inherit Doc

+
+

Accessors

+
+ +
+
+ +
    +
  • get numberOfRunningTasks(): number
  • +
  • +
    +

    Inherit Doc

    +

    Returns number

+
+ +
+
+

Methods

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      data: Data
    +

    Returns Promise<Response>

+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Type Parameters

    +
      +
    • +

      Message

    +
    +

    Parameters

    +
      +
    • +
      messageChannel: ThreadWorkerWithMessageChannel
    • +
    • +
      listener: ((message: MessageValue<Message, unknown>) => void)
      +
        +
      • +
          +
        • (message: MessageValue<Message, unknown>): void
        • +
        • +
          +

          Parameters

          +
            +
          • +
            message: MessageValue<Message, unknown>
          +

          Returns void

    +

    Returns void

+
+ +
+
+ +
+
+ +
    + +
  • +
    +

    Inherit Doc

    +
    +

    Parameters

    +
      +
    • +
      workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
    +

    Returns void

+
+ +
    + +
  • +

    Setup hook that can be overridden by a Poolifier pool implementation to run code before workers are created in the abstract constructor.

    -

Returns void

Protected workerListener

  • workerListener(): (message: MessageValue<Response, unknown>) => void
  • -

    This function is the listener registered for each worker.

    -

    Returns (message: MessageValue<Response, unknown>) => void

    The listener function to execute when a message is sent from a worker.

    -
      • (message: MessageValue<Response, unknown>): void
      • -

        This function is the listener registered for each worker.

        -

        Parameters

        • message: MessageValue<Response, unknown>

        Returns void

        The listener function to execute when a message is sent from a worker.

        -

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +

Returns void

+
+ +
    + +
  • +

    This function is the listener registered for each worker.

    + +

    Returns

    The listener function to execute when a message is received from a worker.

    +
    +

    Returns ((message: MessageValue<Response, unknown>) => void)

    +
      +
    • +
        +
      • (message: MessageValue<Response, unknown>): void
      • +
      • +

        This function is the listener registered for each worker.

        + +

        Returns

        The listener function to execute when a message is received from a worker.

        +
        +
        +

        Parameters

        +
          +
        • +
          message: MessageValue<Response, unknown>
        +

        Returns void

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index e90d1519..dc2272a1 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,83 +1,507 @@ -ThreadWorker | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ThreadWorker<Data, Response>

-

A thread worker used by a poolifier ThreadPool.

-

When this worker is inactive for more than the given maxInactiveTime, +ThreadWorker | poolifier

+
+ +
+
+
+
+ +

Class ThreadWorker<Data, Response>

+
+

A thread worker used by a poolifier ThreadPool.

+

When this worker is inactive for more than the given maxInactiveTime, it will send a termination request to its main thread.

If you use a DynamicThreadPool the extra workers that were created will be terminated, but the minimum number of workers will be guaranteed.

-
template DataType

of data this worker receives from pool's execution. This can only be serializable data.

-
template ResponseType

of response the worker sends back to the main thread. This can only be serializable data.

-
author

Alessandro Pio Ardizio

-
since

0.0.1

-

Type parameters

  • Data = unknown

  • Response = unknown

Hierarchy

Index

Constructors

constructor

  • -

    Constructs a new poolifier thread worker.

    -

    Type parameters

    • Data = unknown

    • Response = unknown

    Parameters

    • fn: (data: Data) => Response
      -

      Function processed by the worker when the pool's execution function is invoked.

      -
        • (data: Data): Response
        • Parameters

          • data: Data

          Returns Response

    • opts: WorkerOptions = {}
      -

      Options for the worker.

      -

    Returns ThreadWorker<Data, Response>

Properties

Protected Optional Readonly aliveInterval

aliveInterval?: Timeout
-

Handler Id of the aliveInterval worker alive check.

-

Protected lastTaskTimestamp

lastTaskTimestamp: number
-

Timestamp of the last task processed by this worker.

-

Protected mainWorker

mainWorker: undefined | null | MessagePort

Readonly opts

opts: WorkerOptions = ...

Methods

asyncId

  • asyncId(): number
  • Returns number

    The unique asyncId assigned to the resource.

    -

bind

  • bind<Func>(fn: Func): Func & { asyncResource: AsyncResource }
  • -

    Binds the given function to execute to this AsyncResource's scope.

    -

    The returned function will have an asyncResource property referencing + +

    Template

    of data this worker receives from pool's execution. This can only be serializable data.

    + +

    Template

    of response the worker sends back to the main thread. This can only be serializable data.

    + +

    Author

    Alessandro Pio Ardizio

    + +

    Since

    0.0.1

    +
+
+

Type Parameters

+
    +
  • +

    Data = unknown

  • +
  • +

    Response = unknown

+
+

Hierarchy

+
+
+
+
+ +
+
+

Constructors

+
+ +
    + +
  • +

    Constructs a new poolifier thread worker.

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Data = unknown

    • +
    • +

      Response = unknown

    +
    +

    Parameters

    +
      +
    • +
      fn: ((data: Data) => Response)
      +

      Function processed by the worker when the pool's execution function is invoked.

      +
      +
        +
      • +
          +
        • (data: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            data: Data
          +

          Returns Response

    • +
    • +
      opts: WorkerOptions = {}
      +

      Options for the worker.

      +
    +

    Returns ThreadWorker<Data, Response>

+
+

Properties

+
+ +
aliveInterval?: Timeout
+

Handler Id of the aliveInterval worker alive check.

+
+
+ +
lastTaskTimestamp: number
+

Timestamp of the last task processed by this worker.

+
+
+ +
mainWorker: undefined | null | MessagePort
+
+ + +

Options for the worker.

+
+
+

Methods

+
+ +
    + +
  • +
    +

    Returns

    The unique asyncId assigned to the resource.

    +
    +

    Returns number

+
+ +
    + +
  • +

    Binds the given function to execute to this AsyncResource's scope.

    +

    The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.

    -
    since

    v14.8.0, v12.19.0

    -

Type parameters

  • Func: (...args: any[]) => any

Parameters

  • fn: Func
    -

    The function to bind to the current AsyncResource.

    -

Returns Func & { asyncResource: AsyncResource }

Protected checkAlive

  • checkAlive(): void

emitDestroy

  • -

    Call all destroy hooks. This should only ever be called once. An error will + +

    Since

    v14.8.0, v12.19.0

    +
    +
    +

    Type Parameters

    +
      +
    • +

      Func extends ((...args: any[]) => any)

    +
    +

    Parameters

    +
      +
    • +
      fn: Func
      +

      The function to bind to the current AsyncResource.

      +
    +

    Returns Func & { asyncResource: AsyncResource }

+
+ +
+
+ +
    + +
  • +

    Call all destroy hooks. This should only ever be called once. An error will be thrown if it is called more than once. This must be manually called. If the resource is left to be collected by the GC then the destroy hooks will never be called.

    -

Returns ThreadWorker<Data, Response>

A reference to asyncResource.

-

Protected getMainWorker

  • getMainWorker(): MessagePort

Protected handleError

  • handleError(e: string | Error): string

Protected run

  • run(fn: (data?: Data) => Response, value: MessageValue<Data, unknown>): void
  • -

    Run the given function synchronously.

    -

    Parameters

    • fn: (data?: Data) => Response
      -

      Function that will be executed.

      -
        • (data?: Data): Response
        • Parameters

          • Optional data: Data

          Returns Response

    • value: MessageValue<Data, unknown>
      -

      Input data for the given function.

      -

    Returns void

Protected runAsync

  • runAsync(fn: (data?: Data) => Promise<Response>, value: MessageValue<Data, unknown>): void
  • -

    Run the given function asynchronously.

    -

    Parameters

    • fn: (data?: Data) => Promise<Response>
      -

      Function that will be executed.

      -
        • (data?: Data): Promise<Response>
        • Parameters

          • Optional data: Data

          Returns Promise<Response>

    • value: MessageValue<Data, unknown>
      -

      Input data for the given function.

      -

    Returns void

runInAsyncScope

  • runInAsyncScope<This, Result>(fn: (...args: any[]) => Result, thisArg?: This, ...args: any[]): Result
  • -

    Call the provided function with the provided arguments in the execution context + +

    Returns

    A reference to asyncResource.

    +
    +

    Returns ThreadWorker<Data, Response>

+
+ +
+
+ +
    + +
  • +

    Handle an error and convert it to a string so it can be sent back to the main worker.

    + +

    Returns

    Message of the error.

    +
    +
    +

    Parameters

    +
      +
    • +
      e: string | Error
      +

      The error raised by the worker.

      +
    +

    Returns string

+
+ +
    + +
  • +
    +

    Parameters

    +
      +
    • +
      value: MessageValue<Data, MessagePort>
    • +
    • +
      fn: ((data: Data) => Response)
      +
        +
      • +
          +
        • (data: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            data: Data
          +

          Returns Response

    +

    Returns void

+
+ +
    + +
  • +

    Run the given function synchronously.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data?: Data) => Response)
      +

      Function that will be executed.

      +
      +
        +
      • +
          +
        • (data?: Data): Response
        • +
        • +
          +

          Parameters

          +
            +
          • +
            Optional data: Data
          +

          Returns Response

    • +
    • +
      value: MessageValue<Data, unknown>
      +

      Input data for the given function.

      +
    +

    Returns void

+
+ +
    + +
  • +

    Run the given function asynchronously.

    +
    +
    +

    Parameters

    +
      +
    • +
      fn: ((data?: Data) => Promise<Response>)
      +

      Function that will be executed.

      +
      +
        +
      • +
          +
        • (data?: Data): Promise<Response>
        • +
        • +
          +

          Parameters

          +
            +
          • +
            Optional data: Data
          +

          Returns Promise<Response>

    • +
    • +
      value: MessageValue<Data, unknown>
      +

      Input data for the given function.

      +
    +

    Returns void

+
+ +
    + +
  • +

    Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks before callbacks, call the function, trigger the AsyncHooks after callbacks, and then restore the original execution context.

    -
    since

    v9.6.0

    -

Type parameters

  • This

  • Result

Parameters

  • fn: (...args: any[]) => Result
    -

    The function to call in the execution context of this async resource.

    -
      • (...args: any[]): Result
      • Parameters

        • Rest ...args: any[]

        Returns Result

  • Optional thisArg: This
    -

    The receiver to be used for the function call.

    -
  • Rest ...args: any[]
    -

    Optional arguments to pass to the function.

    -

Returns Result

Protected sendToMainWorker

  • sendToMainWorker(message: MessageValue<Response, unknown>): void

triggerAsyncId

  • triggerAsyncId(): number
  • Returns number

    The same triggerAsyncId that is passed to the AsyncResource constructor.

    -

Static bind

  • bind<Func, ThisArg>(fn: Func, type?: string, thisArg?: ThisArg): Func & { asyncResource: AsyncResource }
  • -

    Binds the given function to the current execution context.

    -

    The returned function will have an asyncResource property referencing + +

    Since

    v9.6.0

    +
    +
    +

    Type Parameters

    +
      +
    • +

      This

    • +
    • +

      Result

    +
    +

    Parameters

    +
      +
    • +
      fn: ((this: This, ...args: any[]) => Result)
      +

      The function to call in the execution context of this async resource.

      +
      +
        +
      • +
          +
        • (this: This, ...args: any[]): Result
        • +
        • +
          +

          Parameters

          +
            +
          • +
            this: This
          • +
          • +
            Rest ...args: any[]
          +

          Returns Result

    • +
    • +
      Optional thisArg: This
      +

      The receiver to be used for the function call.

      +
    • +
    • +
      Rest ...args: any[]
      +

      Optional arguments to pass to the function.

      +
    +

    Returns Result

+
+ +
+
+ +
    + +
  • +
    +

    Returns

    The same triggerAsyncId that is passed to the AsyncResource constructor.

    +
    +

    Returns number

+
+ +
    + +
  • +

    Binds the given function to the current execution context.

    +

    The returned function will have an asyncResource property referencing the AsyncResource to which the function is bound.

    -
    since

    v14.8.0, v12.19.0

    -

    Type parameters

    • Func: (...args: any[]) => any

    • ThisArg

    Parameters

    • fn: Func
      -

      The function to bind to the current execution context.

      -
    • Optional type: string
      -

      An optional name to associate with the underlying AsyncResource.

      -
    • Optional thisArg: ThisArg

    Returns Func & { asyncResource: AsyncResource }

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +

Since

v14.8.0, v12.19.0

+ +
+

Type Parameters

+
    +
  • +

    Func extends ((this: ThisArg, ...args: any[]) => any)

  • +
  • +

    ThisArg

+
+

Parameters

+
    +
  • +
    fn: Func
    +

    The function to bind to the current execution context.

    +
  • +
  • +
    Optional type: string
    +

    An optional name to associate with the underlying AsyncResource.

    +
  • +
  • +
    Optional thisArg: ThisArg
+

Returns Func & { asyncResource: AsyncResource }

+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index c18f6241..ea69435b 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,17 +1,93 @@ -poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

poolifier

Index

Type aliases

ErrorHandler

ErrorHandler<Worker>: (this: Worker, e: Error) => void

Type parameters

  • Worker

Type declaration

    • (this: Worker, e: Error): void
    • -

      Callback invoked if the worker raised an error.

      -

      Parameters

      • this: Worker
      • e: Error

      Returns void

ExitHandler

ExitHandler<Worker>: (this: Worker, code: number) => void

Type parameters

  • Worker

Type declaration

    • (this: Worker, code: number): void
    • -

      Callback invoked when the worker exits successfully.

      -

      Parameters

      • this: Worker
      • code: number

      Returns void

KillBehavior

KillBehavior: keyof typeof KillBehaviors
-

Kill behavior.

-

OnlineHandler

OnlineHandler<Worker>: (this: Worker) => void

Type parameters

  • Worker

Type declaration

    • (this: Worker): void
    • -

      Callback invoked when the worker has started successfully.

      -

      Parameters

      • this: Worker

      Returns void

ThreadWorkerWithMessageChannel

ThreadWorkerWithMessageChannel: Worker & Draft<MessageChannel>
-

A thread worker with message channels for communication between main thread and thread worker.

-

WorkerChoiceStrategy

WorkerChoiceStrategy: keyof typeof WorkerChoiceStrategies
-

Worker choice strategy.

-

Variables

KillBehaviors

KillBehaviors: Readonly<{ HARD: "HARD"; SOFT: "SOFT" }> = ...
-

Enumeration of kill behaviors.

-

WorkerChoiceStrategies

WorkerChoiceStrategies: Readonly<{ LESS_RECENTLY_USED: "LESS_RECENTLY_USED"; ROUND_ROBIN: "ROUND_ROBIN" }> = ...
-

Enumeration of worker choice strategies.

-

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +poolifier
+
+ +
+ +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/ClusterPoolOptions.html b/docs/interfaces/ClusterPoolOptions.html index 02740562..416094ba 100644 --- a/docs/interfaces/ClusterPoolOptions.html +++ b/docs/interfaces/ClusterPoolOptions.html @@ -1,19 +1,137 @@ -ClusterPoolOptions | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ClusterPoolOptions

-

Options for a poolifier cluster pool.

-

Hierarchy

Index

Properties

Optional enableEvents

enableEvents?: boolean
-

Pool events emission.

-
default

true

-

Optional env

env?: any
-

Key/value pairs to add to worker process environment.

-
see

https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

-

Optional errorHandler

errorHandler?: ErrorHandler<Worker>
-

A function that will listen for error event on each worker.

-

Optional exitHandler

exitHandler?: ExitHandler<Worker>
-

A function that will listen for exit event on each worker.

-

Optional messageHandler

messageHandler?: MessageHandler<Worker>
-

A function that will listen for message event on each worker.

-

Optional onlineHandler

onlineHandler?: OnlineHandler<Worker>
-

A function that will listen for online event on each worker.

-

Optional workerChoiceStrategy

workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
-

The work choice strategy to use in this pool.

-

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +ClusterPoolOptions | poolifier
+
+ +
+
+
+
+ +

Interface ClusterPoolOptions

+
+

Options for a poolifier cluster pool.

+
+
+

Hierarchy

+
+
+
+
+ +
+
+

Properties

+
+ +
enableEvents?: boolean
+

Pool events emission.

+ +

Default

true

+
+
+ +
env?: any
+

Key/value pairs to add to worker process environment.

+ +

See

https://nodejs.org/api/cluster.html#cluster_cluster_fork_env

+
+
+ +
errorHandler?: ErrorHandler<Worker>
+

A function that will listen for error event on each worker.

+
+
+ +
exitHandler?: ExitHandler<Worker>
+

A function that will listen for exit event on each worker.

+
+
+ +
messageHandler?: MessageHandler<Worker>
+

A function that will listen for message event on each worker.

+
+
+ +
onlineHandler?: OnlineHandler<Worker>
+

A function that will listen for online event on each worker.

+
+
+ +
workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
+

The work choice strategy to use in this pool.

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/IPool.html b/docs/interfaces/IPool.html index 36b35e12..a3655322 100644 --- a/docs/interfaces/IPool.html +++ b/docs/interfaces/IPool.html @@ -1,18 +1,125 @@ -IPool | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IPool<Data, Response>

-

Contract definition for a poolifier pool.

-

Type parameters

  • Data = unknown

    -

    Type of data sent to the worker. This can only be serializable data.

    -
  • Response = unknown

    -

    Type of response of execution. This can only be serializable data.

    -

Hierarchy

  • IPool

Index

Methods

destroy

  • destroy(): Promise<void>
  • -

    Shut down every current worker in this pool.

    -

    Returns Promise<void>

execute

  • execute(data: Data): Promise<Response>
  • -

    Perform the task specified in the constructor with the data parameter.

    -

    Parameters

    • data: Data
      -

      The input for the specified task. This can only be serializable data.

      -

    Returns Promise<Response>

    Promise that will be resolved when the task is successfully completed.

    -

setWorkerChoiceStrategy

  • setWorkerChoiceStrategy(workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"): void
  • -

    Set the worker choice strategy in this pool.

    -

    Parameters

    • workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
      -

      The worker choice strategy.

      -

    Returns void

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +IPool | poolifier
+
+ +
+
+
+
+ +

Interface IPool<Data, Response>

+
+

Contract definition for a poolifier pool.

+
+
+

Type Parameters

+
    +
  • +

    Data = unknown

    +

    Type of data sent to the worker. This can only be serializable data.

    +
  • +
  • +

    Response = unknown

    +

    Type of response of execution. This can only be serializable data.

    +
+
+

Hierarchy

+
    +
  • IPool
+
+
+
+ +
+
+

Methods

+
+ +
    + +
  • +

    Shut down every current worker in this pool.

    +
    +

    Returns Promise<void>

+
+ +
    + +
  • +

    Perform the task specified in the constructor with the data parameter.

    + +

    Returns

    Promise that will be resolved when the task is successfully completed.

    +
    +
    +

    Parameters

    +
      +
    • +
      data: Data
      +

      The input for the specified task. This can only be serializable data.

      +
    +

    Returns Promise<Response>

+
+ +
    + +
  • +

    Set the worker choice strategy in this pool.

    +
    +
    +

    Parameters

    +
      +
    • +
      workerChoiceStrategy: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
      +

      The worker choice strategy.

      +
    +

    Returns void

+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/IWorker.html b/docs/interfaces/IWorker.html deleted file mode 100644 index 0f47810e..00000000 --- a/docs/interfaces/IWorker.html +++ /dev/null @@ -1,33 +0,0 @@ -IWorker | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IWorker

-

Basic interface that describes the minimum required implementation of listener events for a pool-worker.

-

Hierarchy

  • IWorker

Index

Methods

Methods

on

once

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/PoolOptions.html b/docs/interfaces/PoolOptions.html index 30985c43..7aebf66a 100644 --- a/docs/interfaces/PoolOptions.html +++ b/docs/interfaces/PoolOptions.html @@ -1,16 +1,125 @@ -PoolOptions | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PoolOptions<Worker>

-

Options for a poolifier pool.

-

Type parameters

  • Worker

Hierarchy

Index

Properties

Optional enableEvents

enableEvents?: boolean
-

Pool events emission.

-
default

true

-

Optional errorHandler

errorHandler?: ErrorHandler<Worker>
-

A function that will listen for error event on each worker.

-

Optional exitHandler

exitHandler?: ExitHandler<Worker>
-

A function that will listen for exit event on each worker.

-

Optional messageHandler

messageHandler?: MessageHandler<Worker>
-

A function that will listen for message event on each worker.

-

Optional onlineHandler

onlineHandler?: OnlineHandler<Worker>
-

A function that will listen for online event on each worker.

-

Optional workerChoiceStrategy

workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
-

The work choice strategy to use in this pool.

-

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +PoolOptions | poolifier
+
+ +
+
+
+
+ +

Interface PoolOptions<Worker>

+
+

Options for a poolifier pool.

+
+
+

Type Parameters

+
    +
  • +

    Worker

+
+

Hierarchy

+
+
+
+
+ +
+
+

Properties

+
+ +
enableEvents?: boolean
+

Pool events emission.

+ +

Default

true

+
+
+ +
errorHandler?: ErrorHandler<Worker>
+

A function that will listen for error event on each worker.

+
+
+ +
exitHandler?: ExitHandler<Worker>
+

A function that will listen for exit event on each worker.

+
+
+ +
messageHandler?: MessageHandler<Worker>
+

A function that will listen for message event on each worker.

+
+
+ +
onlineHandler?: OnlineHandler<Worker>
+

A function that will listen for online event on each worker.

+
+
+ +
workerChoiceStrategy?: "ROUND_ROBIN" | "LESS_RECENTLY_USED"
+

The work choice strategy to use in this pool.

+
+
+
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/docs/interfaces/WorkerOptions.html b/docs/interfaces/WorkerOptions.html index b3473b58..8da97c5f 100644 --- a/docs/interfaces/WorkerOptions.html +++ b/docs/interfaces/WorkerOptions.html @@ -1,24 +1,107 @@ -WorkerOptions | poolifier
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WorkerOptions

-

Options for workers.

-

Hierarchy

  • WorkerOptions

Index

Properties

Optional async

async?: boolean
-

Whether your worker will perform asynchronous or not.

-
default

false

-

Optional killBehavior

killBehavior?: "SOFT" | "HARD"
-

killBehavior dictates if your async unit (worker/process) will be deleted in case that a task is active on it.

-
    +WorkerOptions | poolifier
    +
    + +
    +
    +
    +
    + +

    Interface WorkerOptions

    +
    +

    Options for workers.

    +
    +
    +

    Hierarchy

    +
      +
    • WorkerOptions
    +
    +
    +
    + +
    +
    +

    Properties

    +
    + +
    async?: boolean
    +

    Whether your worker will perform asynchronous or not.

    + +

    Default

    false

    +
    +
    + +
    killBehavior?: "SOFT" | "HARD"
    +

    killBehavior dictates if your async unit (worker/process) will be deleted in case that a task is active on it.

    +
    • SOFT: If currentTime - lastActiveTime is greater than maxInactiveTime but a task is still running, then the worker won't be deleted.
    • HARD: If lastActiveTime is greater than maxInactiveTime but a task is still running, then the worker will be deleted.

    This option only apply to the newly created workers.

    -
    default

    KillBehaviors.SOFT

    -

Optional maxInactiveTime

maxInactiveTime?: number
-

Maximum waiting time in milliseconds for tasks.

-

After this time, newly created workers will be terminated. + +

Default

KillBehaviors.SOFT

+
+
+ +
maxInactiveTime?: number
+

Maximum waiting time in milliseconds for tasks.

+

After this time, newly created workers will be terminated. The last active time of your worker unit will be updated when a task is submitted to a worker or when a worker terminate a task.

  • If killBehavior is set to KillBehaviors.HARD this value represents also the timeout for the tasks that you submit to the pool, when this timeout expires your tasks is interrupted and the worker is killed if is not part of the minimum size of the pool.
  • If killBehavior is set to KillBehaviors.SOFT your tasks have no timeout and your workers will not be terminated until your task is completed.
-
default

60.000 ms

-

Legend

  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Protected method
  • Private method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file + +

Default

60.000 ms

+ + +
+

Generated using TypeDoc

+
\ No newline at end of file diff --git a/src/pools/abstract-pool-worker.ts b/src/pools/abstract-pool-worker.ts index f591b24e..a27d03ef 100644 --- a/src/pools/abstract-pool-worker.ts +++ b/src/pools/abstract-pool-worker.ts @@ -10,14 +10,14 @@ import type { * Basic class that implement the minimum required for a pool worker. */ export abstract class AbstractPoolWorker implements IPoolWorker { - /** @inheritdoc */ + /** @inheritDoc */ abstract on (event: 'message', handler: MessageHandler): void - /** @inheritdoc */ + /** @inheritDoc */ abstract on (event: 'error', handler: ErrorHandler): void - /** @inheritdoc */ + /** @inheritDoc */ abstract on (event: 'online', handler: OnlineHandler): void - /** @inheritdoc */ + /** @inheritDoc */ abstract on (event: 'exit', handler: ExitHandler): void - /** @inheritdoc */ + /** @inheritDoc */ abstract once (event: 'exit', handler: ExitHandler): void } diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 928b24c6..10fe1281 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -26,16 +26,16 @@ export abstract class AbstractPool< Data = unknown, Response = unknown > implements IPoolInternal { - /** @inheritdoc */ + /** @inheritDoc */ public readonly workers: Worker[] = [] - /** @inheritdoc */ + /** @inheritDoc */ public readonly tasks: Map = new Map() - /** @inheritdoc */ + /** @inheritDoc */ public readonly emitter?: PoolEmitter - /** @inheritdoc */ + /** @inheritDoc */ public readonly max?: number /** @@ -143,25 +143,25 @@ export abstract class AbstractPool< this.opts.enableEvents = opts.enableEvents ?? true } - /** @inheritdoc */ + /** @inheritDoc */ public abstract get type (): PoolType - /** @inheritdoc */ + /** @inheritDoc */ public get numberOfRunningTasks (): number { return this.promiseMap.size } - /** @inheritdoc */ + /** @inheritDoc */ public getWorkerRunningTasks (worker: Worker): number | undefined { return this.tasks.get(worker) } - /** @inheritdoc */ + /** @inheritDoc */ public getWorkerIndex (worker: Worker): number { return this.workers.indexOf(worker) } - /** @inheritdoc */ + /** @inheritDoc */ public setWorkerChoiceStrategy ( workerChoiceStrategy: WorkerChoiceStrategy ): void { @@ -171,7 +171,7 @@ export abstract class AbstractPool< ) } - /** @inheritdoc */ + /** @inheritDoc */ public abstract get busy (): boolean protected internalGetBusyStatus (): boolean { @@ -181,7 +181,7 @@ export abstract class AbstractPool< ) } - /** @inheritdoc */ + /** @inheritDoc */ public findFreeWorker (): Worker | false { for (const worker of this.workers) { if (this.getWorkerRunningTasks(worker) === 0) { @@ -192,7 +192,7 @@ export abstract class AbstractPool< return false } - /** @inheritdoc */ + /** @inheritDoc */ public execute (data: Data): Promise { // Configure worker to handle message with the specified task const worker = this.chooseWorker() @@ -204,7 +204,7 @@ export abstract class AbstractPool< return res } - /** @inheritdoc */ + /** @inheritDoc */ public async destroy (): Promise { await Promise.all(this.workers.map(worker => this.destroyWorker(worker))) } diff --git a/src/pools/cluster/dynamic.ts b/src/pools/cluster/dynamic.ts index ec177da6..ebff6bfe 100644 --- a/src/pools/cluster/dynamic.ts +++ b/src/pools/cluster/dynamic.ts @@ -34,12 +34,12 @@ export class DynamicClusterPool< super(min, filePath, opts) } - /** @inheritdoc */ + /** @inheritDoc */ public get type (): PoolType { return PoolType.DYNAMIC } - /** @inheritdoc */ + /** @inheritDoc */ public get busy (): boolean { return this.workers.length === this.max } diff --git a/src/pools/cluster/fixed.ts b/src/pools/cluster/fixed.ts index 971116bc..09c5e369 100644 --- a/src/pools/cluster/fixed.ts +++ b/src/pools/cluster/fixed.ts @@ -49,30 +49,30 @@ export class FixedClusterPool< super(numberOfWorkers, filePath, opts) } - /** @inheritdoc */ + /** @inheritDoc */ protected setupHook (): void { cluster.setupPrimary({ exec: this.filePath }) } - /** @inheritdoc */ + /** @inheritDoc */ protected isMain (): boolean { return cluster.isPrimary } - /** @inheritdoc */ + /** @inheritDoc */ public destroyWorker (worker: Worker): void { this.sendToWorker(worker, { kill: 1 }) worker.kill() } - /** @inheritdoc */ + /** @inheritDoc */ protected sendToWorker (worker: Worker, message: MessageValue): void { worker.send(message) } - /** @inheritdoc */ + /** @inheritDoc */ public registerWorkerMessageListener ( worker: Worker, listener: (message: MessageValue) => void @@ -80,23 +80,23 @@ export class FixedClusterPool< worker.on('message', listener) } - /** @inheritdoc */ + /** @inheritDoc */ protected createWorker (): Worker { return cluster.fork(this.opts.env) } - /** @inheritdoc */ + /** @inheritDoc */ protected afterWorkerSetup (worker: Worker): void { // Listen worker messages. this.registerWorkerMessageListener(worker, super.workerListener()) } - /** @inheritdoc */ + /** @inheritDoc */ public get type (): PoolType { return PoolType.FIXED } - /** @inheritdoc */ + /** @inheritDoc */ public get busy (): boolean { return this.internalGetBusyStatus() } diff --git a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts index 9cbebc3b..fc9074da 100644 --- a/src/pools/selection-strategies/abstract-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/abstract-worker-choice-strategy.ts @@ -15,7 +15,7 @@ export abstract class AbstractWorkerChoiceStrategy< Data, Response > implements IWorkerChoiceStrategy { - /** @inheritdoc */ + /** @inheritDoc */ public isDynamicPool: boolean = this.pool.type === PoolType.DYNAMIC /** @@ -27,6 +27,6 @@ export abstract class AbstractWorkerChoiceStrategy< protected readonly pool: IPoolInternal ) {} - /** @inheritdoc */ + /** @inheritDoc */ public abstract choose (): Worker } diff --git a/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts b/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts index f98ec5ef..c2053af4 100644 --- a/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/dynamic-pool-worker-choice-strategy.ts @@ -41,7 +41,7 @@ export class DynamicPoolWorkerChoiceStrategy< ) } - /** @inheritdoc */ + /** @inheritDoc */ public choose (): Worker { const freeWorker = this.pool.findFreeWorker() if (freeWorker) { diff --git a/src/pools/selection-strategies/less-recently-used-worker-choice-strategy.ts b/src/pools/selection-strategies/less-recently-used-worker-choice-strategy.ts index 33f6859c..03c6524d 100644 --- a/src/pools/selection-strategies/less-recently-used-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/less-recently-used-worker-choice-strategy.ts @@ -13,7 +13,7 @@ export class LessRecentlyUsedWorkerChoiceStrategy< Data, Response > extends AbstractWorkerChoiceStrategy { - /** @inheritdoc */ + /** @inheritDoc */ public choose (): Worker { let minNumberOfRunningTasks = Infinity // A worker is always found because it picks the one with fewer tasks diff --git a/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts b/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts index ea1ad567..69bffea1 100644 --- a/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts +++ b/src/pools/selection-strategies/round-robin-worker-choice-strategy.ts @@ -18,7 +18,7 @@ export class RoundRobinWorkerChoiceStrategy< */ private nextWorkerIndex: number = 0 - /** @inheritdoc */ + /** @inheritDoc */ public choose (): Worker { const chosenWorker = this.pool.workers[this.nextWorkerIndex] this.nextWorkerIndex = diff --git a/src/pools/thread/dynamic.ts b/src/pools/thread/dynamic.ts index a5b9eb7c..929287c8 100644 --- a/src/pools/thread/dynamic.ts +++ b/src/pools/thread/dynamic.ts @@ -35,12 +35,12 @@ export class DynamicThreadPool< super(min, filePath, opts) } - /** @inheritdoc */ + /** @inheritDoc */ public get type (): PoolType { return PoolType.DYNAMIC } - /** @inheritdoc */ + /** @inheritDoc */ public get busy (): boolean { return this.workers.length === this.max } diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index da3c0138..3212678f 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -40,12 +40,12 @@ export class FixedThreadPool< super(numberOfThreads, filePath, opts) } - /** @inheritdoc */ + /** @inheritDoc */ protected isMain (): boolean { return isMainThread } - /** @inheritdoc */ + /** @inheritDoc */ public async destroyWorker ( worker: ThreadWorkerWithMessageChannel ): Promise { @@ -53,7 +53,7 @@ export class FixedThreadPool< await worker.terminate() } - /** @inheritdoc */ + /** @inheritDoc */ protected sendToWorker ( worker: ThreadWorkerWithMessageChannel, message: MessageValue @@ -61,7 +61,7 @@ export class FixedThreadPool< worker.postMessage(message) } - /** @inheritdoc */ + /** @inheritDoc */ public registerWorkerMessageListener ( messageChannel: ThreadWorkerWithMessageChannel, listener: (message: MessageValue) => void @@ -69,14 +69,14 @@ export class FixedThreadPool< messageChannel.port2?.on('message', listener) } - /** @inheritdoc */ + /** @inheritDoc */ protected createWorker (): ThreadWorkerWithMessageChannel { return new Worker(this.filePath, { env: SHARE_ENV }) } - /** @inheritdoc */ + /** @inheritDoc */ protected afterWorkerSetup (worker: ThreadWorkerWithMessageChannel): void { const { port1, port2 } = new MessageChannel() worker.postMessage({ parent: port1 }, [port1]) @@ -86,12 +86,12 @@ export class FixedThreadPool< this.registerWorkerMessageListener(worker, super.workerListener()) } - /** @inheritdoc */ + /** @inheritDoc */ public get type (): PoolType { return PoolType.FIXED } - /** @inheritdoc */ + /** @inheritDoc */ public get busy (): boolean { return this.internalGetBusyStatus() } diff --git a/src/worker/cluster-worker.ts b/src/worker/cluster-worker.ts index 3b5c89ca..4e57e963 100644 --- a/src/worker/cluster-worker.ts +++ b/src/worker/cluster-worker.ts @@ -38,12 +38,12 @@ export class ClusterWorker< ) } - /** @inheritdoc */ + /** @inheritDoc */ protected sendToMainWorker (message: MessageValue): void { this.getMainWorker().send(message) } - /** @inheritdoc */ + /** @inheritDoc */ protected handleError (e: Error | string): string { return e instanceof Error ? e.message : e } diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index 1456daef..de1c36bf 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -32,7 +32,7 @@ export class ThreadWorker< super('worker-thread-pool:poolifier', isMainThread, fn, parentPort, opts) } - /** @inheritdoc */ + /** @inheritDoc */ protected sendToMainWorker (message: MessageValue): void { this.getMainWorker().postMessage(message) }