X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FThreadWorker.html;h=3a82e4bd6da9618590364070e11790a2f27c1da7;hb=33c629765dcf8e17e2d3fa207a286b5d360fae78;hp=a4c0ee80c6aec47c63e2262922a1df9973a6456e;hpb=e83f3916315e18f3ca0c614d6ec9e064ab76c13c;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index a4c0ee80..3a82e4bd 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -42,7 +42,7 @@ but the minimum number of workers will be guaranteed.
Protected
lastProtected
mainReadonly
optsAsyncResource
to which the function is bound.
Protected
handle
Handle an error and convert it to a string so it can be sent back to the main worker.
+Handles an error and convert it to a string so it can be sent back to the main worker.
Returns
Message of the error.
Returns string
+Protected
message@@ -276,13 +276,13 @@ never be called.
Returns void
Protected
runRun the given function synchronously.
+Runs the given function synchronously.
Parameters
@@ -309,13 +309,13 @@ never be called.Returns void
+Protected
runRun the given function asynchronously.
+Runs the given function asynchronously.
Parameters
@@ -342,7 +342,7 @@ never be called.Returns void
+run In Async Scope
@@ -399,7 +399,7 @@ then restore the original execution context.- send
To Main Worker(message: MessageValue<Response, unknown>): void
-
-
- Defined in src/worker/thread-worker.ts:36
Send a message to the main worker.
+Sends a message to the main worker.
Parameters
@@ -411,7 +411,7 @@ then restore the original execution context.Returns void
+trigger Async Id