X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Finterfaces%2FTask.html;h=b2bacebf97362f3cfde31d34438ab11987968391;hb=e8dacfb2833a6682fad27f857b1127a1e04b2f04;hp=5a5cddd69de0f9d02ae936ac75e05ffd5450c936;hpb=aec509b85e7d73e9883c8885e27fc4e34fdaef1e;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index 5a5cddd6..b2bacebf 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,33 @@
data
-id
+data?
+id?
+name?
-data: Data
-
+data?: Data
+
+
+
+id?: string
+
-
-id: string
-Defined in src/pools/worker.ts:51
+
+name?: string
+
+Defined in src/pools/worker.ts:43
@@ -69,54 +81,60 @@
-
+
Properties
-Properties
-data
-Worker task data.
+
+Optional
Readonly
dataTask input data that will be passed to the worker.
++- Defined in src/pools/worker.ts:47
+Optional
Readonly
idMessage UUID.
-- Defined in src/pools/worker.ts:39
id
-Task UUID.
+
+Optional
Readonly
nameTask name.
-- Defined in src/pools/worker.ts:43
Theme
Theme
On This Page
-- data
-- id
Generated using TypeDoc