X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=257aa4663e6328135689376365ce08e632a91f5f;hb=3c7c9bd12cf4b0cec0e0a3825c31f7cc9f3f58fe;hp=37736c8088df7878aa6c5d31136473d69539288f;hpb=5e5a659e2b415c7d533dad095eda082989983f8e;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 37736c80..257aa466 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -AbstractWorker | poolifier
+AbstractWorker | poolifier - v2.6.21
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.21
    @@ -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,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:39
  • @@ -59,20 +59,23 @@

    Properties

    -

    Methods

    -
    @@ -93,7 +106,7 @@
      - +
    • Constructs a new poolifier worker.

      @@ -101,7 +114,7 @@

      Type Parameters

      • -

        MainWorker extends Worker | MessagePort

      • +

        MainWorker extends MessagePort | Worker

      • Data = unknown

      • @@ -120,13 +133,13 @@
      • -
        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.

      • @@ -138,17 +151,25 @@
    +
  • Defined in src/worker/abstract-worker.ts:73
  • 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:63
  • +
    + +
    id: number
    +

    Worker id.

    +
    +
    isMain: boolean
    @@ -156,7 +177,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • lastTaskTimestamp: number
    @@ -164,15 +185,15 @@
    -
    - -
    mainWorker: undefined | null | MainWorker
    +
  • Defined in src/worker/abstract-worker.ts:55
  • +
    + +
    mainWorker: MainWorker

    Reference to main worker.

    +
  • Defined in src/worker/abstract-worker.ts:76
  • opts: WorkerOptions = ...
    @@ -180,25 +201,57 @@
    +
  • Defined in src/worker/abstract-worker.ts:78
  • statistics: WorkerStatistics
    -

    Performance statistics computation.

    +

    Performance statistics computation requirements.

    +
  • Defined in src/worker/abstract-worker.ts:59
  • -
    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:51
  • Methods

    +
    + +
      @@ -209,15 +262,20 @@
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.6/node_modules/@types/node/async_hooks.d.ts:306
  • +
  • Defined in src/worker/abstract-worker.ts:499
  • -
    - -
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:349
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:110
  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:98
  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.6/node_modules/@types/node/async_hooks.d.ts:302
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:508
  • +
  • Defined in src/worker/abstract-worker.ts:363
  • +
  • Defined in src/worker/abstract-worker.ts:490
  • -

    Returns string

    Message of the error.

    +

    Returns string

    The error message.

    +
  • Defined in src/worker/abstract-worker.ts:385
  • +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:295
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:449
  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.6/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:413
  • +
  • Defined in src/worker/abstract-worker.ts:375
  • +
    + +
    +
    + +
    +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.6/node_modules/@types/node/async_hooks.d.ts:311
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.6/node_modules/@types/node/async_hooks.d.ts:277
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file