X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=62ea0b1b9fd3bc3f08cdfab0a13c32335252332c;hb=dab8c377b70fc962ec217f2aeb719842f9f94cd6;hp=846e4c32efb8979cf0772db1f0bd5808ed6e0aca;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index 846e4c32..62ea0b1b 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,4 +1,4 @@ -
Inherited from AbstractWorker.runAsync
+Inherited from AbstractWorker.runAsync
Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks @@ -370,108 +307,129 @@ then restore the original execution context.
v9.6.0
The function to call in the execution context of this async resource.
Rest
...args: any[]Rest
...args: any[]Optional
thisArg: ThisOptional
thisArg: ThisThe receiver to be used for the function call.
Rest
...args: any[]Rest
...args: any[]Optional arguments to pass to the function.
Inherited from AbstractWorker.runInAsyncScope
+Inherited from AbstractWorker.runInAsyncScope
+Protected
runRuns the given function synchronously.
+Function that will be executed.
+Input data for the given function.
+Inherited from AbstractWorker.runSync
Protected
sendSends a message to the main worker.
+The response message.
+Overrides AbstractWorker.sendToMainWorker
+Overrides AbstractWorker.sendToMainWorker
The same triggerAsyncId
that is passed to the AsyncResource
constructor.
Inherited from AbstractWorker.triggerAsyncId
+ +The same triggerAsyncId
that is passed to the AsyncResource
constructor.
Inherited from AbstractWorker.triggerAsyncId
Static
bindBinds the given function to the current execution context.
-The returned function will have an asyncResource
property referencing
-the AsyncResource
to which the function is bound.
v14.8.0, v12.19.0
The function to bind to the current execution context.
Optional
type: stringOptional
type: stringAn optional name to associate with the underlying AsyncResource
.
Optional
thisArg: ThisArgInherited from AbstractWorker.bind
+Optional
thisArg: ThisArgInherited from AbstractWorker.bind
Generated using TypeDoc
Type of data this worker receives from pool's execution. This can only be serializable data.