X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=8b5d3d325dd55c13f829d6cf2400f48bc749cf70;hb=bc3227d835252ffa3d2dd141da6304e21a7265b8;hp=79298d41f4848667b9ed935730ebefbfadc2e688;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 79298d41..8b5d3d32 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -
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 @@ -378,73 +334,75 @@ then restore the original execution context.
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
+Inherited from AbstractWorker.triggerAsyncId
Static
bindBinds the given function to the current execution context.
The returned function will have an asyncResource
property referencing
@@ -456,24 +414,24 @@ the AsyncResource
to which the function is bound.
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.