X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FThreadWorker.html;h=1f2c9e99df10aa71a8e2f8910445d16945ac47c4;hb=fab6d3b5750d884b29e5e7057628a06d88d0df8a;hp=97df815d4883303a433a9c5350ae049deb2eed69;hpb=d6b93f1ae5603949390418b787e0ad51b026f9c5;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 97df815d..1f2c9e99 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -
Inherited from AbstractWorker.messageListener
Protected
runRuns the given function synchronously.
Function that will be executed.
-Optional
data: DataInput data for the given function.
Inherited from AbstractWorker.run
Protected
runRuns the given function asynchronously.
Function that will be executed.
-Optional
data: DataInput data for the given function.
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 @@ -374,49 +326,49 @@ 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
Protected
sendSends a message to the main worker.
The response message.
Overrides 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
bindBinds the given function to the current execution context.
The returned function will have an asyncResource
property referencing
@@ -454,30 +405,30 @@ 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: ThisArgOptional
thisArg: ThisArgInherited from AbstractWorker.bind
Generated using TypeDoc
Type of data this worker receives from pool's execution. This can only be serializable data.