X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTask.html;h=008329cf923bcb309e799e2d97563eca378fe09b;hb=65632d7d60a45877ab5a8fd02dae3d68eb9853db;hp=5a5cddd69de0f9d02ae936ac75e05ffd5450c936;hpb=842d8918a19fc2720d4436789a2e373bc623452e;p=poolifier.git diff --git a/docs/interfaces/Task.html b/docs/interfaces/Task.html index 5a5cddd6..008329cf 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
+

Task 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