X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=d72e9fb95277de50974cb27d32e4cf4e224e4614;hb=d5d8ef5b0645ff2e43010f981a768c48cd559854;hp=c4da792dfd210020c6d059c52cf65adc5eb494aa;hpb=15d6dfaf877ec6a99e2bde48cb3c8a9e8671c075;p=poolifier.git
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index c4da792d..d72e9fb9 100644
--- a/docs/classes/AbstractWorker.html
+++ b/docs/classes/AbstractWorker.html
@@ -29,12 +29,12 @@
Data = unknown
-
+Defined in src/worker/abstract-worker.ts:54
Protected
Readonly
isMain
isMain: boolean
@@ -153,7 +157,7 @@
+Defined in src/worker/abstract-worker.ts:66
Protected
lastTaskTimestamp
lastTaskTimestamp: number
@@ -161,15 +165,15 @@
+Defined in src/worker/abstract-worker.ts:46
-Protected
mainWorker
-mainWorker: undefined | null | MainWorker
+Protected
Readonly
mainWorker
+mainWorker: MainWorker
+Defined in src/worker/abstract-worker.ts:70
Protected
Readonly
opts
@@ -177,7 +181,15 @@
+Defined in src/worker/abstract-worker.ts:71
+
+Protected
statistics
+
+
+
Protected
taskFunctions
@@ -185,7 +197,7 @@
+Defined in src/worker/abstract-worker.ts:42
Methods
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:306
+
+Private
beginTaskPerformance
+
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:283
Protected
checkAlive
@@ -236,7 +256,15 @@
Returns void
+Defined in src/worker/abstract-worker.ts:192
+
+Private
checkStatistics
+
+- checkStatistics(): void
+-
+
Returns void
Private
checkTaskFunctions
@@ -255,7 +283,7 @@
Returns void
+Defined in src/worker/abstract-worker.ts:109
Private
checkWorkerOptions
Returns void
+Defined in src/worker/abstract-worker.ts:97
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:302
+
+Private
endTaskPerformance
+
Protected
getMainWorker
@@ -296,7 +337,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:173
Private
getTaskFunction
@@ -315,7 +356,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:286
Protected
handleError
@@ -335,7 +376,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:207
Protected
messageListener
@@ -347,14 +388,14 @@ never be called.
Parameters
Returns void
+Defined in src/worker/abstract-worker.ts:149
Protected
runAsync
@@ -371,14 +412,14 @@ never be called.
-
-
message: MessageValue<Data, Worker | MessagePort>
+
Returns void
+Defined in src/worker/abstract-worker.ts:250
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:294
Protected
runSync
@@ -450,14 +491,14 @@ then restore the original execution context.
-
-
message: MessageValue<Data, Worker | MessagePort>
+
Returns void
+Defined in src/worker/abstract-worker.ts:217
Protected
Abstract
sendToMainWorker
@@ -469,14 +510,14 @@ then restore the original execution context.
Parameters
Returns void
+Defined in src/worker/abstract-worker.ts:185
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:311
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:277
Type of data this worker receives from pool's execution. This can only be serializable data.
+Type of data this worker receives from pool's execution. This can only be structured-cloneable data.
Response = unknown
-Type of response the worker sends back to the main worker. This can only be serializable data.
+Type of response the worker sends back to the main worker. This can only be structured-cloneable data.
@@ -64,16 +64,20 @@ last Task Timestamp
main Worker
opts
+statistics
task Functions
Methods
mainWorker: undefined | null | MainWorker
+mainWorker: MainWorker
Reference to main worker.
Properties