X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=d55a97e12a1bc0958da4989d22fed9890e1e5f45;hb=969223ea18802a84dfea369e254332e11bf8e419;hp=19af66cab32cb8d6049a0456988d5ee8fd69bf2d;hpb=36df5bd40369d98d6ccb60400e66dce1aa980d54;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index 19af66ca..d55a97e1 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,4 +1,4 @@ -ClusterWorker | poolifier - v2.6.15
+ClusterWorker | poolifier - v2.6.33
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.15
+
  • The search index is not available
  • poolifier - v2.6.33
    @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

    • ClusterWorker
    +
  • Defined in src/worker/cluster-worker.ts:21
  • @@ -62,7 +62,6 @@ but the minimum number of workers will be guaranteed.

    activeInterval? isMain lastTaskTimestamp -mainWorker opts statistics taskFunctions @@ -79,14 +78,17 @@ but the minimum number of workers will be guaranteed.

    emitDestroy getMainWorker handleError +handleKillMessage +handleReadyMessage hasTaskFunction +listTaskFunctions messageListener removeTaskFunction run runAsync runInAsyncScope runSync -sendReadyResponse +sendTaskFunctionsListToMainWorker sendToMainWorker setDefaultTaskFunction triggerAsyncId @@ -112,7 +114,7 @@ but the minimum number of workers will be guaranteed.

    Parameters

    +
  • Defined in src/worker/cluster-worker.ts:31
  • Properties

    @@ -136,7 +138,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:73
  • isMain: boolean
    @@ -145,7 +147,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:85
  • lastTaskTimestamp: number
    @@ -154,25 +156,16 @@ but the minimum number of workers will be guaranteed.

    -
    - -
    mainWorker: Worker
    -

    Reference to main worker.

    -
    -
    +
  • Defined in src/worker/abstract-worker.ts:65
  • - -
    opts: WorkerOptions = ...
    + +
    opts: WorkerOptions = DEFAULT_WORKER_OPTIONS

    Options for the worker.

    +
  • Defined in src/worker/abstract-worker.ts:88
  • statistics: WorkerStatistics
    @@ -181,16 +174,16 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:69
  • -
    taskFunctions: Map<string, WorkerFunction<Data, Response>>
    +
    taskFunctions: Map<string, TaskFunction<Data, Response>>

    Task function(s) processed by the worker when the pool's execution function is invoked.

    +
  • Defined in src/worker/abstract-worker.ts:61
  • Accessors

    @@ -204,7 +197,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/cluster-worker.ts:65
  • Methods

    @@ -224,14 +217,14 @@ If a task function with the same name already exists, it is replaced.

  • -
    fn: WorkerFunction<Data, Response>
    +
    fn: TaskFunction<Data, Response>

    The task function to add.

  • Returns boolean

    Whether the task function was added or not.

    -

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the name parameter is not a string.

    +

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the name parameter is not a string or an empty string.

    Throws

    https://nodejs.org/api/errors.html#class-error If the name parameter is the default task function reserved name.

    @@ -239,7 +232,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:183
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.4/node_modules/@types/node/async_hooks.d.ts:306
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.4/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.4/node_modules/@types/node/async_hooks.d.ts:302
  • +
  • Defined in src/worker/abstract-worker.ts:423
  • +
  • Defined in src/worker/abstract-worker.ts:455
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:167
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:319
  • +
  • Defined in src/worker/abstract-worker.ts:221
  • +
  • Defined in src/worker/abstract-worker.ts:465
  • +
  • Defined in src/worker/abstract-worker.ts:517
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.4/node_modules/@types/node/async_hooks.d.ts:294
  • -
    - +
  • Defined in src/worker/abstract-worker.ts:480
  • +
    +
    +
  • Defined in src/worker/abstract-worker.ts:442
  • +
  • Defined in src/worker/cluster-worker.ts:70
  • +
  • Defined in src/worker/abstract-worker.ts:275
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.4/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.4/node_modules/@types/node/async_hooks.d.ts:277