X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FThreadWorker.html;h=3b326741c067332b105175214f30848b332e2b9d;hb=ffc8d14415d44de881ee66ee60fc74da48084976;hp=a01d1b7360dc11e64cb7d2a8e7aeff7775bc7790;hpb=797996a92f40d5779cd31314b59462e41d529989;p=poolifier.git
diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html
index a01d1b73..3b326741 100644
--- a/docs/classes/ThreadWorker.html
+++ b/docs/classes/ThreadWorker.html
@@ -44,7 +44,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/thread-worker.ts:21
@@ -57,9 +57,10 @@ but the minimum number of workers will be guaranteed.
Methods
@@ -118,17 +119,25 @@ but the minimum number of workers will be guaranteed.
Overrides AbstractWorker<MessagePort, Data, Response>.constructor
+Defined in src/worker/thread-worker.ts:31
Protected
main Worker
main Worker: undefined | null | MessagePort
@@ -144,15 +153,15 @@ but the minimum number of workers will be guaranteed.
-
+
+Protected
Readonly
opts
+
+Defined in src/worker/abstract-worker.ts:46
Methods
@@ -166,7 +175,7 @@ but the minimum number of workers will be guaranteed.
Returns number
+Defined in node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts:315
+Defined in node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts:288
+Defined in src/worker/abstract-worker.ts:146
+Defined in node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts:311
+Defined in src/worker/abstract-worker.ts:129
+Defined in src/worker/abstract-worker.ts:161
Protected
message Listener
-message Listener( value: MessageValue < Data , MessagePort > , fn: ( ( data: Data ) => Response ) ) : void
+message Listener( message: MessageValue < Data , MessagePort > , fn: ( ( data: Data ) => Response ) ) : void
+
Parameters
-value: MessageValue < Data , MessagePort >
+message: MessageValue < Data , MessagePort >
+
fn: ( ( data: Data ) => Response )
+
+ Defined in src/worker/abstract-worker.ts:84
Protected
run
-run( fn: ( ( data?: Data ) => Response ) , value: MessageValue < Data , unknown > ) : void
+run( fn: ( ( data?: Data ) => Response ) , message: MessageValue < Data , unknown > ) : void
@@ -307,17 +322,17 @@ never be called.
Optional
data: Data
Returns Response
-value: MessageValue < Data , unknown >
+message: MessageValue < Data , unknown >
Returns void
+Defined in src/worker/abstract-worker.ts:171
Protected
run Async
-run Async( fn: ( ( data?: Data ) => Promise < Response > ) , value: MessageValue < Data , unknown > ) : void
+run Async( fn: ( ( data?: Data ) => Promise < Response > ) , message: MessageValue < Data , unknown > ) : void
@@ -340,13 +355,13 @@ never be called.
Optional
data: Data
Returns Promise < Response >
-value: MessageValue < Data , unknown >
+message: MessageValue < Data , unknown >
Returns void
+Defined in src/worker/abstract-worker.ts:198
+Defined in node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts:303
Protected
send To Main Worker
send To Main Worker( message: MessageValue < Response , unknown > ) : void
-
+
Parameters
+
Defined in src/worker/thread-worker.ts:36
+
Defined in node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts:320
+ Defined in node_modules/.pnpm/@types+node@18.15.11/node_modules/@types/node/async_hooks.d.ts:273
Handler Id of the
+aliveInterval
worker alive check.Handler id of the
aliveInterval
worker alive check. Main
+Protected
Readonly
isWhether this is the main worker or not.
+Protected
last