X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=bcb651b0216b3f6dd17eab46fa345521844a2b0e;hb=ab03ecdd9c195574f19dbed3b36641229c24f723;hp=cf097693738ec9187ed7e2369c8b87fbdd279e9f;hpb=d6b93f1ae5603949390418b787e0ad51b026f9c5;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index cf097693..bcb651b0 100644 --- a/docs/interfaces/Task.html +++ b/docs/interfaces/Task.html @@ -16,7 +16,7 @@
Internal
Worker task interface.
+Message object that is passed as a task between main worker and worker.
Type Parameters
@@ -28,9 +28,11 @@Hierarchy
-- Task
@@ -38,25 +40,25 @@
data
-id
+data?
+id?
-data: Data
-data?: Data
+
+Defined in src/pools/worker.ts:42
-id: string
-id?: string
+
+Defined in src/pools/worker.ts:46
@@ -115,7 +117,10 @@
Online Handler
Pool Event
Thread Worker With Message Channel
+Worker Async Function
Worker Choice Strategy
+Worker Function
+Worker Sync Function
Kill Behaviors
Pool Events
Worker Choice Strategies
Properties
-Properties
data
-Worker task data.
+
+Optional
Readonly
dataTask input data that will be passed to the worker.
id
-Task UUID.
+
+Optional
Readonly
idUUID of the message.