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 @@ -

Interface Task<Data>

+

Interface Task<Data>Internal

-

Worker task interface.

+

Message object that is passed as a task between main worker and worker.

Type Parameters

+

Data = unknown

+

Type of data sent to the worker. This can only be serializable data.

+

Hierarchy

@@ -36,25 +40,25 @@

Properties

-

Properties

- -
data: Data
-

Worker task data.

+ +
data?: Data
+

Input data that will be passed to the worker.

+
  • Defined in src/pools/worker.ts:42
  • - -
    id: string
    -

    Task UUID.

    + +
    id?: string
    +

    UUID of the message.

    +
  • Defined in src/pools/worker.ts:46