X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=03f2c1201c0ccffee70e3980537c46ad0ed01207;hb=65ec4e64a4690b019d3ef86c97aa7182b715f539;hp=79298d41f4848667b9ed935730ebefbfadc2e688;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 79298d41..03f2c120 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -
Inherited from AbstractWorker.messageListener
+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
+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
+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,77 +326,78 @@ 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
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
@@ -452,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: 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.