X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=d01ac89f93063843087ec0adbbed184d06ff3d76;hb=51e49c70379025e6709ae33e5cb4bf91b22ccc41;hp=f89d2098a8fc4e71989f755da493a2561abe9b45;hpb=fddf9cc424b3ace38fd414899c666c76a03c3aff;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index f89d2098..d01ac89f 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,13 +1,13 @@ -ClusterWorker | poolifier
+ClusterWorker | poolifier - v2.7.1
-
+
  • The search index is not available
  • poolifier - v2.7.1 +
    @@ -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,46 +47,58 @@ but the minimum number of workers will be guaranteed.

    • ClusterWorker
    +
  • Defined in src/worker/cluster-worker.ts:21
  • - +

    Constructors

    - +
    +
  • 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:79
  • isMain: boolean
    @@ -136,7 +148,7 @@ but the minimum number of workers will be guaranteed.

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

    -
    - -
    mainWorker: undefined | null | Worker
    -

    Reference to main worker.

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

    Options for the worker.

    +
  • Defined in src/worker/abstract-worker.ts:94
  • -
    statistics: WorkerStatistics
    -

    Performance statistics computation.

    +
    statistics: WorkerStatistics
    +

    Performance statistics computation requirements.

    +
  • Defined in src/worker/abstract-worker.ts:75
  • -
    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:67
  • +
    +

    Accessors

    +
    + +

    Methods

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

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:307
    • @@ -221,19 +265,7 @@ but the minimum number of workers will be guaranteed.

    -
    - -
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:284
    • @@ -249,7 +281,7 @@ never be called.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:303
    • @@ -259,14 +291,16 @@ never be called.

    Returns Worker

    Reference to the main worker.

    -
    +
    -
    -

    Returns string

    Message of the error.

    +

    Returns string

    The error message.

    +
  • Defined in src/worker/abstract-worker.ts:485
  • +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:306
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:555
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:295
  • +
  • Defined in src/worker/abstract-worker.ts:521
  • +
    + +
    +
  • Defined in src/worker/cluster-worker.ts:68
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:312
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:278
  • @@ -496,76 +692,60 @@ then restore the original execution context.

    +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file