X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=460aac9df0eb0d25f61fdfaa12a766b43df5de46;hb=3dd69d8ee8aa2132fccb106720a9f5ae67b92cc8;hp=df85f6680ee4b5899780ee0f36af115abac21d0c;hpb=15e4d8f3cafe9f7412913b0e440921e813bdf3cd;p=poolifier.git
diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html
index df85f668..460aac9d 100644
--- a/docs/classes/AbstractWorker.html
+++ b/docs/classes/AbstractWorker.html
@@ -18,9 +18,9 @@
Type of main worker. Constructs a new poolifier worker. Handler id of the Whether this is the main worker or not. Timestamp of the last task processed by this worker. Reference to main worker. Options for the worker. v14.8.0, v12.19.0 Inherited from AsyncResource.bindType Parameters
-
+
MainWorker extends Worker | MessagePort
@@ -88,9 +88,9 @@
Type Parameters
-
+
MainWorker extends Worker | MessagePort
Returns AbstractWorker<MainWorker, Data, Response>
Properties
aliveInterval
worker alive check.Protected
Readonly
isProtected
lastProtected
mainProtected
Readonly
optsMethods
bind
@@ -186,9 +185,9 @@ the
AsyncResource
to which the function is bound.
Since
Type Parameters
-
+
Func extends ((...args) => any)
AsyncResource
to which the function is bound.
Returns Func & {
    asyncResource: AsyncResource;
}
-
Protected
check
@@ -211,7 +210,7 @@ the
AsyncResource
to which the function is bound.
Returns void
-
Private
check
@@ -228,7 +227,7 @@ the
AsyncResource
to which the function is bound.
Private
checkAsyncResource
to which the function is bound.
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 AsyncResource.emitDestroy
Protected
getReturns the main worker.
- -Reference to the main worker.
Reference to the main worker.
+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.
+Protected
messageProtected
runProtected
runv9.6.0
-Inherited from AsyncResource.runInAsyncScope
Protected
Abstract
sendThe same triggerAsyncId
that is passed to the AsyncResource
constructor.
The same triggerAsyncId
that is passed to the AsyncResource
constructor.
Inherited from AsyncResource.triggerAsyncId
Static
bindAsyncResource
to which the function is bound.
v14.8.0, v12.19.0
-AsyncResource
to which the function is bound.
Inherited from AsyncResource.bind
Base class that implements some shared logic for all poolifier workers.