X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTaskFunctionObject.html;h=9bf714d063cbbb97a58ad77f9f78b13f5caaf93b;hb=5d1b49719459de479de5dabe173ceff38d6c4071;hp=eef2daec82db95ee0d585fc11f9075b11f1ce9e1;hpb=5d9133ae9ef83c5f69e26daf8dcfea584884d9c4;p=poolifier.git diff --git a/docs/interfaces/TaskFunctionObject.html b/docs/interfaces/TaskFunctionObject.html index eef2daec..9bf714d0 100644 --- a/docs/interfaces/TaskFunctionObject.html +++ b/docs/interfaces/TaskFunctionObject.html @@ -1,10 +1,10 @@ -TaskFunctionObject | poolifier - v4.0.2

Interface TaskFunctionObject<Data, Response>

Task function object.

+TaskFunctionObject | poolifier - v4.0.10

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