X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=359ea73bcbef83587feff9fe0ada720467929c5c;hb=e39450c0889208d6dcde666fc05b95fe7a98ee29;hp=5a5cddd69de0f9d02ae936ac75e05ffd5450c936;hpb=842d8918a19fc2720d4436789a2e373bc623452e;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index 5a5cddd6..359ea73b 100644 --- a/docs/interfaces/Task.html +++ b/docs/interfaces/Task.html @@ -14,21 +14,25 @@
-Internal
Worker task interface.
+Message object that is passed as a task between main worker and worker.
Type Parameters
Data = unknown
Data = unknown
+Type of data sent to the worker. This can only be serializable data.
+Hierarchy
-- Task
@@ -36,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
Properties
-Properties
data
-Worker task data.
+
+Optional
Readonly
dataInput data that will be passed to the worker.
-- Defined in src/pools/worker.ts:39
id
-Task UUID.
+
+Optional
Readonly
idUUID of the message.
-- Defined in src/pools/worker.ts:43