X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=72d07e7c9300dba1d3bf53ca331e80fe4aa96165;hb=a34454964733f585af19a04f21f9e35eb18c77b1;hp=cdfaa2f052ff269ba061e2fe0a3f00758a8f78f0;hpb=67ff85c0f9bf4f18372728327fc5373f17d9e13a;p=poolifier.git
diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html
index cdfaa2f0..72d07e7c 100644
--- a/docs/classes/ClusterWorker.html
+++ b/docs/classes/ClusterWorker.html
@@ -44,7 +44,7 @@ but the minimum number of workers will be guaranteed.
+Defined in src/worker/cluster-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<Worker, Data, Response>.constructor
+Defined in src/worker/cluster-worker.ts:31
Protected
main Worker
main Worker: undefined | null | Worker
@@ -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
Protected
handle Error
handle Error( e: string | Error ) : string
-
+
Parameters
+
Defined in src/worker/cluster-worker.ts:47
Protected
message Listener
-message Listener( value: MessageValue < Data , Worker > , fn: ( ( data: Data ) => Response ) ) : void
+message Listener( message: MessageValue < Data , Worker > , fn: ( ( data: Data ) => Response ) ) : void
+
Parameters
Protected
run
-run( fn: ( ( data?: Data ) => Response ) , value: MessageValue < Data , unknown > ) : void
+run( fn: ( ( data?: Data ) => Response ) , message: MessageValue < Data , unknown > ) : void
@@ -303,17 +318,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
@@ -336,13 +351,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
-
+
+ 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