X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FAbstractWorker.html;h=9dcdc7c1b2e8addebd692d80869ff1fe787e54ae;hb=4e1212db1d198963828820471bde6902277d0388;hp=efc1ac916d12eb8693425297fd3e97398648b6a7;hpb=edc0cdb11d19cc5993ca98004a7dbbf49439acd8;p=poolifier.git
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index efc1ac91..9dcdc7c1 100644
--- a/docs/classes/AbstractWorker.html
+++ b/docs/classes/AbstractWorker.html
@@ -1,13 +1,13 @@
-
AbstractWorker | poolifier - v2.6.30
@@ -47,19 +47,19 @@
ClusterWorker
ThreadWorker
+
Defined in src/worker/abstract-worker.ts:49
- Index
+ Index
Constructors
-constructor
+
Properties
-activeInterval?
+
Methods
-addTaskFunction
+
addTaskFunction
asyncId
beginTaskPerformance
bind
@@ -79,11 +79,11 @@
checkStatistics
checkTaskFunctionName
checkTaskFunctions
+
checkValidTaskFunction
checkWorkerOptions
emitDestroy
endTaskPerformance
getMainWorker
-
getTaskFunction
handleError
handleKillMessage
handleReadyMessage
@@ -107,7 +107,7 @@
Constructors
-constructor
+constructor
- new AbstractWorker<MainWorker, Data, Response>(type, isMain, mainWorker, taskFunctions, opts?): AbstractWorker<MainWorker, Data, Response>
-
@@ -154,7 +154,7 @@
+
Defined in src/worker/abstract-worker.ts:83
+
Defined in src/worker/abstract-worker.ts:73
Protected
Abstract
id
id: number
@@ -172,7 +172,7 @@
+
Defined in src/worker/abstract-worker.ts:57
Protected
Readonly
isMain
isMain: boolean
@@ -180,7 +180,7 @@
+
Defined in src/worker/abstract-worker.ts:85
Protected
lastTaskTimestamp
lastTaskTimestamp: number
@@ -188,7 +188,7 @@
+
Defined in src/worker/abstract-worker.ts:65
Private
Readonly
mainWorker
mainWorker: MainWorker
@@ -196,7 +196,7 @@
+Defined in src/worker/abstract-worker.ts:86
Protected
opts
@@ -204,7 +204,7 @@
+
Defined in src/worker/abstract-worker.ts:88
Protected
statistics
@@ -212,7 +212,7 @@
+
Defined in src/worker/abstract-worker.ts:69
Protected
taskFunctions
@@ -220,7 +220,7 @@
+Defined in src/worker/abstract-worker.ts:61
+Defined in node_modules/.pnpm/@types+node@20.5.9/node_modules/@types/node/async_hooks.d.ts:306
Private
beginTaskPerformance
@@ -278,7 +278,7 @@ If a task function with the same name already exists, it is replaced.
Optional
name: string
+Defined in src/worker/abstract-worker.ts:576
+Defined in node_modules/.pnpm/@types+node@20.5.9/node_modules/@types/node/async_hooks.d.ts:283
Private
checkActive
@@ -316,7 +316,7 @@ If a task function with the same name already exists, it is replaced.
Returns void
+Defined in src/worker/abstract-worker.ts:419
Private
checkMessageWorkerId
+Defined in src/worker/abstract-worker.ts:385
Private
checkStatistics
@@ -345,7 +345,7 @@ If a task function with the same name already exists, it is replaced.
-
Returns void
+Defined in src/worker/abstract-worker.ts:600
Private
checkTaskFunctionName
@@ -358,7 +358,7 @@ If a task function with the same name already exists, it is replaced.
name: string
Returns void
+Defined in src/worker/abstract-worker.ts:308
Private
checkTaskFunctions
@@ -377,7 +377,22 @@ If a task function with the same name already exists, it is replaced.
Returns void
+Defined in src/worker/abstract-worker.ts:132
+
+Private
checkValidTaskFunction
+
+- checkValidTaskFunction(name, fn): void
+-
+
+
Returns void
Private
checkWorkerOptions
@@ -390,7 +405,7 @@ If a task function with the same name already exists, it is replaced.
Returns void
+Defined in src/worker/abstract-worker.ts:101
+Defined in node_modules/.pnpm/@types+node@20.5.9/node_modules/@types/node/async_hooks.d.ts:302
Private
endTaskPerformance
@@ -419,7 +434,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:585
-
-Private
getTaskFunction
-
-- getTaskFunction(name?): TaskFunction<Data, Response>
--
-
-
-
Parameters
-
--
-
Optional
name: string
-
-
-The task function.
-
+Defined in src/worker/abstract-worker.ts:434
Protected
handleError
@@ -473,7 +468,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:466
Protected
handleKillMessage
@@ -492,7 +487,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:351
Protected
Abstract
handleReadyMessage
@@ -511,7 +506,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:322
+Defined in src/worker/abstract-worker.ts:177
listTaskFunctions
@@ -545,7 +540,7 @@ never be called.
+Defined in src/worker/abstract-worker.ts:255
Protected
messageListener
@@ -564,7 +559,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:329
+Defined in src/worker/abstract-worker.ts:231
+Defined in src/worker/abstract-worker.ts:476
Protected
runAsync
@@ -635,7 +630,7 @@ never be called.
Returns void
+Defined in src/worker/abstract-worker.ts:541
+Defined in node_modules/.pnpm/@types+node@20.5.9/node_modules/@types/node/async_hooks.d.ts:294
Protected
runSync
@@ -714,7 +709,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:504
Protected
sendTaskFunctionsListToMainWorker
@@ -725,7 +720,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:453
Protected
Abstract
sendToMainWorker
@@ -744,7 +739,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:446
+Defined in src/worker/abstract-worker.ts:285
Private
startCheckActive
@@ -781,7 +776,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:398
Private
stopCheckActive
@@ -792,7 +787,7 @@ then restore the original execution context.
Returns void
+Defined in src/worker/abstract-worker.ts:409
+Defined in node_modules/.pnpm/@types+node@20.5.9/node_modules/@types/node/async_hooks.d.ts:311
Private
updateLastTaskTimestamp
@@ -811,7 +806,7 @@ then restore the original execution context.
-
Returns void
+Defined in src/worker/abstract-worker.ts:606
+Defined in node_modules/.pnpm/@types+node@20.5.9/node_modules/@types/node/async_hooks.d.ts:277
+
-
\ No newline at end of file
+Generated using TypeDoc
+
\ No newline at end of file
Gets the task function with the given name.
-