X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=d72e9fb95277de50974cb27d32e4cf4e224e4614;hb=d5d8ef5b0645ff2e43010f981a768c48cd559854;hp=2d650398b30c7c574d7479c24dd129d83199e475;hpb=afa30fd0dd5bbc5d305cc30be663966a449efc08;p=poolifier.git
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index 2d650398..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
@@ -156,7 +157,7 @@
+Defined in src/worker/abstract-worker.ts:66
Protected
lastTaskTimestamp
lastTaskTimestamp: number
@@ -164,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
@@ -180,15 +181,15 @@
+Defined in src/worker/abstract-worker.ts:71
Protected
statistics
-statistics: WorkerStatistics
-
+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
-- beginTaskPerformance(message): TaskPerformance
+- beginTaskPerformance(): TaskPerformance
-
-
-
Returns TaskPerformance
+Defined in src/worker/abstract-worker.ts:295
+Defined in node_modules/.pnpm/@types+node@20.3.2/node_modules/@types/node/async_hooks.d.ts:283
Protected
checkAlive
@@ -260,7 +256,15 @@
Returns void
+Defined in src/worker/abstract-worker.ts:192
+
+Private
checkStatistics
+
+- checkStatistics(): void
+-
+
Returns void
Private
checkTaskFunctions
@@ -279,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
-- endTaskPerformance(taskPerformance): TaskPerformance
+- endTaskPerformance(taskPerformance): TaskPerformance
-
Parameters
-
-
taskPerformance: TaskPerformance
-Returns TaskPerformance
+
+Defined in src/worker/abstract-worker.ts:303
Protected
getMainWorker
@@ -333,7 +337,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:173
Private
getTaskFunction
@@ -352,7 +356,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:286
Protected
handleError
@@ -372,7 +376,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:207
Protected
messageListener
@@ -384,14 +388,14 @@ never be called.
Parameters
Returns void
+Defined in src/worker/abstract-worker.ts:149
Protected
runAsync
@@ -408,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
@@ -487,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
@@ -506,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.
@@ -73,6 +73,7 @@ begin Task Performance
bind
check Alive
+check Statistics
check Task Functions
check Worker Options
emit Destroy
@@ -125,7 +126,7 @@
mainWorker: undefined | null | MainWorker
+mainWorker: MainWorker
Reference to main worker.
Properties