X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=8e355dd5cc732c4e3f3f551e4298b7984b3d947f;hb=31542ddfe8297d3bd0f9cf97a3de06a03dafc15d;hp=a45a062e07b80fe4bdf66c3a3c4cb37c78c063b9;hpb=6d59ea2c71b8a88d41498c6fb54dfad95fd3a3ac;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index a45a062e..e088cd1b 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,4 +1,4 @@ -ClusterWorker | poolifier
+ClusterWorker | poolifier - v2.6.32
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.32
    @@ -32,12 +32,12 @@ but the minimum number of workers will be guaranteed.

    • Data = unknown

      -

      Type of data this worker receives from pool's execution. This can only be serializable data.

      +

      Type of data this worker receives from pool's execution. This can only be structured-cloneable data.

    • Response = unknown

      -

      Type of response the worker sends back to the main worker. This can only be serializable data.

      +

      Type of response the worker sends back to the main worker. This can only be structured-cloneable data.

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

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

    Properties

    -
    +

    Accessors

    +
    id +
    +

    Methods

    -
    @@ -103,7 +114,7 @@ but the minimum number of workers will be guaranteed.

    Parameters

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

    -
    - -
    aliveInterval?: Timeout
    -

    Handler id of the aliveInterval worker alive check.

    +
    + +
    activeInterval?: Timeout
    +

    Handler id of the activeInterval worker activity check.

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

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

    -
    - -
    mainWorker: undefined | null | 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
    -

    Performance statistics computation.

    +

    Performance statistics computation requirements.

    +
  • 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

    +
    + +

    Methods

    +
    + +
      @@ -194,7 +243,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in node_modules/.pnpm/@types+node@20.5.3/node_modules/@types/node/async_hooks.d.ts:306
  • -
    - -
    +
  • Defined in node_modules/.pnpm/@types+node@20.5.3/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.3/node_modules/@types/node/async_hooks.d.ts:302
  • -
    +
  • Defined in src/worker/abstract-worker.ts:423
  • +
    -
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:245
  • +
  • Defined in src/worker/abstract-worker.ts:319
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:517
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.3/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:480
  • +
    + +
    +
  • Defined in src/worker/cluster-worker.ts:70
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.5.3/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.3/node_modules/@types/node/async_hooks.d.ts:277
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file