X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=84fd102e762555d9ae11b48f168441ddfc2092d4;hb=0e16e60a89029abe61cda7ba293c036298cced05;hp=40e495582c39508065a5733d118a1c759daded5a;hpb=f05afd162e34836a52c48b05781750e3421424d8;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 40e49558..84fd102e 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -AbstractWorker | poolifier
+AbstractWorker | poolifier - v2.6.26
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.26
    @@ -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 +107,7 @@
      - +
    • Constructs a new poolifier worker.

      @@ -101,7 +115,7 @@

      Type Parameters

      • -

        MainWorker extends Worker | MessagePort

      • +

        MainWorker extends MessagePort | Worker

      • Data = unknown

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

    +
    +
    +
    + +
    id: number
    +

    Worker id.

    +
  • Defined in src/worker/abstract-worker.ts:47
  • isMain: boolean
    @@ -156,7 +178,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • lastTaskTimestamp: number
    @@ -164,15 +186,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 +202,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 +263,20 @@
    +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:306
  • +
  • Defined in src/worker/abstract-worker.ts:558
  • -
    - -
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:401
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:115
  • Returns void

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

    +
  • Defined in src/worker/abstract-worker.ts:567
  • +
  • Defined in src/worker/abstract-worker.ts:415
  • +
  • Defined in src/worker/abstract-worker.ts:549
  • -

    Returns string

    Message of the error.

    +

    Returns string

    The error message.

    +
  • Defined in src/worker/abstract-worker.ts:447
  • +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:320
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:508
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:472
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:427
  • +
    + +
    +
    + +
    +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:277
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file