X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=03f2c1201c0ccffee70e3980537c46ad0ed01207;hb=65ec4e64a4690b019d3ef86c97aa7182b715f539;hp=8b5d3d325dd55c13f829d6cf2400f48bc749cf70;hpb=15e4d8f3cafe9f7412913b0e440921e813bdf3cd;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 8b5d3d32..03f2c120 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -26,9 +26,9 @@ but the minimum number of workers will be guaranteed.
0.0.1
-Protected
Readonly
isProtected
lastProtected
mainProtected
Readonly
optsAsyncResource
to which the function is bound.
v14.8.0, v12.19.0
-AsyncResource
to which the function is bound.
Inherited from AbstractWorker.bind
Protected
checkAsyncResource
to which the function is bound.
Inherited from AbstractWorker.checkAlive
AsyncResource
to which the function is bound.
be thrown if it is called more than once. This must be manually called. If
the resource is left to be collected by the GC then the destroy
hooks will
never be called.
-
-A reference to asyncResource
.
A reference to asyncResource
.
Inherited from AbstractWorker.emitDestroy
Protected
getReturns the main worker.
- -Reference to the main worker.
Reference to the main worker.
+Inherited from AbstractWorker.getMainWorker
Protected
handleHandles an error and convert it to a string so it can be sent back to the main worker.
- -Message of the error.
The error raised by the worker.
Message of the error.
+Inherited from AbstractWorker.handleError
Protected
messageInherited from AbstractWorker.messageListener
Protected
runInherited from AbstractWorker.run
Protected
runInherited from AbstractWorker.runAsync
v9.6.0
-Inherited from AbstractWorker.runInAsyncScope
Protected
sendOverrides AbstractWorker.sendToMainWorker
The same triggerAsyncId
that is passed to the AsyncResource
constructor.
The same triggerAsyncId
that is passed to the AsyncResource
constructor.
Inherited from AbstractWorker.triggerAsyncId
Static
bindAsyncResource
to which the function is bound.
v14.8.0, v12.19.0
-AsyncResource
to which the function is bound.
Inherited from AbstractWorker.bind
Type of data this worker receives from pool's execution. This can only be serializable data.
@@ -44,7 +44,7 @@ but the minimum number of workers will be guaranteed.@@ -87,9 +87,9 @@ but the minimum number of workers will be guaranteed.-
-
+
+ - Defined in src/worker/thread-worker.ts:31
Constructs a new poolifier thread worker.
Type Parameters
-+-
-
@@ -108,7 +108,7 @@ but the minimum number of workers will be guaranteed.
Data = unknown
Returns ThreadWorker<Data, Response>
Properties