X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FTaskFunctionObject.html;h=c92986b33e6680fe92ea812fff898be90ba38e55;hb=15f12f77ca67758e32afdf2c5658075d6beac912;hp=02304cba32112975beeb60a455ad7cd1cbf9ac52;hpb=38e6b85b3247f847b61f30efc37851489f106e8a;p=poolifier.git diff --git a/docs/interfaces/TaskFunctionObject.html b/docs/interfaces/TaskFunctionObject.html index 02304cba..c92986b3 100644 --- a/docs/interfaces/TaskFunctionObject.html +++ b/docs/interfaces/TaskFunctionObject.html @@ -1,10 +1,10 @@ -TaskFunctionObject | poolifier - v4.0.5

Interface TaskFunctionObject<Data, Response>

Task function object.

+TaskFunctionObject | poolifier - v4.0.6

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