X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=8c9b7d168d09daf61ebf2854baa62e9b0210dd87;hb=65ec4e64a4690b019d3ef86c97aa7182b715f539;hp=cf097693738ec9187ed7e2369c8b87fbdd279e9f;hpb=d6b93f1ae5603949390418b787e0ad51b026f9c5;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index cf097693..8c9b7d16 100644 --- a/docs/interfaces/Task.html +++ b/docs/interfaces/Task.html @@ -1,4 +1,4 @@ -
Generated using TypeDoc
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
@@ -38,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
@@ -71,54 +73,57 @@
-
+
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.
Theme
Theme