X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=8b5d3d325dd55c13f829d6cf2400f48bc749cf70;hb=fbc22127e53d3ec0ecbd38ecea25fb92ebef50e7;hp=9b927050c92b56b9aa478fb413bef381f9bde915;hpb=ec06e4dd01adf7aa4bab470c59da42c19d863d0b;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 9b927050..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.