X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=489320bfd0ef992208723b7c0c4fcb2b9d9801e1;hb=76a3a76becd6ac41efb3271c708431a666828c30;hp=c4da792dfd210020c6d059c52cf65adc5eb494aa;hpb=8d20e449d72975f6add9177d1097d5a204d14f71;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index c4da792d..489320bf 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,13 +1,13 @@ -AbstractWorker | poolifier
+AbstractWorker | poolifier - v2.7.1
-
+
  • The search index is not available
  • poolifier - v2.7.1 +
    @@ -29,12 +29,12 @@
  • 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,50 +47,68 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:55
  • - +

    Constructors

    - +
      - +
    • Constructs a new poolifier worker.

      @@ -98,7 +116,7 @@

      Type Parameters

      • -

        MainWorker extends Worker | MessagePort

      • +

        MainWorker extends MessagePort | Worker

      • Data = unknown

      • @@ -117,17 +135,17 @@
  • -
    taskFunctions: WorkerFunction<Data, Response> | TaskFunctions<Data, Response>
    -

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

    +
    mainWorker: MainWorker
    +

    Reference to main worker.

  • -
    mainWorker: undefined | null | MainWorker
    -

    Reference to main worker.

    +
    taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>
    +

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

  • -
    opts: WorkerOptions = ...
    +
    opts: WorkerOptions = DEFAULT_WORKER_OPTIONS

    Options for the worker.

  • @@ -135,17 +153,25 @@
    +
  • Defined in src/worker/abstract-worker.ts:89
  • 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
  • +
    + +
    id: number
    +

    Worker id.

    +
    +
    isMain: boolean
    @@ -153,7 +179,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:91
  • lastTaskTimestamp: number
    @@ -161,33 +187,67 @@
    -
    - -
    mainWorker: undefined | null | MainWorker
    +
  • Defined in src/worker/abstract-worker.ts:71
  • +
    + +
    mainWorker: MainWorker

    Reference to main worker.

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

    Options for the worker.

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

    Performance statistics computation requirements.

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

    +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:307
  • +
    + +
    -
    - -
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:439
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:118
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:108
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.2/node_modules/@types/node/async_hooks.d.ts:303
  • +
    + +
    +
    + +
    -
    - -
    +
    + +
    -
    - +
  • Defined in src/worker/abstract-worker.ts:371
  • +
    +
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:243
  • +
  • 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/abstract-worker.ts:466
  • +
    + +
    +
    + +
    +
    + +
    +
  • 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
  • @@ -544,78 +825,71 @@ then restore the original execution context.

    +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file