X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=f71ae3486786e4900a85054d88c0fe7ef10ab8f5;hb=938d9c678aa8e70e5642feffb90604cf25c993fe;hp=db50344064bbb7aa09eab88f3847c2549c1a5c11;hpb=e7339cfd46bfe4600187ae2c6bd6c9e7f63e7052;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index db503440..f71ae348 100644 --- a/docs/interfaces/Task.html +++ b/docs/interfaces/Task.html @@ -1,4 +1,4 @@ -
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
+
-
-id: string
-Defined in src/pools/worker.ts:42
+
+id?: string
+
+Defined in src/pools/worker.ts:46
@@ -69,53 +73,57 @@
-
+
Properties
-Properties
-data
-Worker task data.
+
+Optional
Readonly
dataTask input 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
Theme
Theme
On This Page
-- data
-- id
Generated using TypeDoc