X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTaskFunctionObject.html;h=0bf19371e86623d0ab7728d5d9e19a07ca6e01fd;hb=28bcd7a31d95fd283814fad692d77b4994c2ac9c;hp=6c52cd4cb97f7d64ec984e25f0ab5aaf11ba1658;hpb=96f3886ad347290d2072643379e9bfb495d905c3;p=poolifier.git diff --git a/docs/interfaces/TaskFunctionObject.html b/docs/interfaces/TaskFunctionObject.html index 6c52cd4c..0bf19371 100644 --- a/docs/interfaces/TaskFunctionObject.html +++ b/docs/interfaces/TaskFunctionObject.html @@ -1,10 +1,10 @@ -TaskFunctionObject | poolifier - v4.0.7

Interface TaskFunctionObject<Data, Response>

Task function object.

+TaskFunctionObject | poolifier - v4.0.13

Interface TaskFunctionObject<Data, Response>

Task function object.

interface TaskFunctionObject<Data, Response> {
    priority?: number;
    strategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN";
    taskFunction: TaskFunction<Data, Response>;
}

Type Parameters

  • Data = unknown

    Type of data sent to the worker. This can only be structured-cloneable data.

  • Response = unknown

    Type of execution response. This can only be structured-cloneable data.

    -

Properties

Properties

priority?: number

Task function priority. Lower values have higher priority.

-
strategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"

Task function worker choice strategy.

-
taskFunction: TaskFunction<Data, Response>

Task function.

-
\ No newline at end of file +
strategy?: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"

Task function worker choice strategy.

+
taskFunction: TaskFunction<Data, Response>

Task function.

+
\ No newline at end of file