X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FAbstractWorker.html;h=388b91568f37a8f74f3a04cc4cbbcdb3faba48bf;hb=afc34f0c8ee4e44ba301212a5eed3fb01035b1fb;hp=dc5c19c94a443f618a488ef5bd48af8951689864;hpb=cea16128a949e8f118627f00ccb33b08db281c45;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index dc5c19c9..388b9156 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -
Protected
runRuns the given function synchronously.
Function that will be executed.
-Optional
data: DataInput data for the given function.
Protected
runRuns the given function asynchronously.
Function that will be executed.
-Optional
data: DataInput data for the given function.
Call the provided function with the provided arguments in the execution context of the async resource. This will establish the context, trigger the AsyncHooks @@ -423,45 +368,45 @@ 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 AsyncResource.runInAsyncScope
Protected
Abstract
sendSends a message to the main worker.
The response message.
The same triggerAsyncId
that is passed to the AsyncResource
constructor.
Inherited from AsyncResource.triggerAsyncId
Static
bindBinds the given function to the current execution context.
The returned function will have an asyncResource
property referencing
@@ -502,23 +447,23 @@ 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: ThisArgOptional
thisArg: ThisArgInherited from AsyncResource.bind
AsyncResource
to which the function is bound.
Generated using TypeDoc
Type of main worker.