X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=de941c0f8427ca8f257b258c9e9e25a55f91b1dc;hb=9954c636f2caafac0b2bf0289059788679fd3053;hp=5a5cddd69de0f9d02ae936ac75e05ffd5450c936;hpb=842d8918a19fc2720d4436789a2e373bc623452e;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index 5a5cddd6..de941c0f 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
@@ -113,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.
-- Defined in src/pools/worker.ts:39
id
-Task UUID.
+
+Optional
Readonly
idUUID of the message.
-- Defined in src/pools/worker.ts:43