X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=e89be619220dfa10a431c0df6c370faef4292047;hb=60af1e8cbf3a50b1d6f3e9a54aea0b9ff92f73f6;hp=507c26388571ab4169f4b9a16ddd3870f70021c1;hpb=aba8d9bd41f1bd46f3cc3863c0c2e74bdfacb7b6;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index 507c2638..e89be619 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,13 +1,13 @@ -AbstractWorker | poolifier
+AbstractWorker | poolifier - v2.7.5
-
+
  • The search index is not available
  • poolifier - v2.7.5 +
    @@ -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,53 +47,68 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:55
  • - +

    Constructors

    - +
      - +
    • Constructs a new poolifier worker.

      @@ -101,7 +116,7 @@

      Type Parameters

      • -

        MainWorker extends Worker | MessagePort

      • +

        MainWorker extends MessagePort | Worker

      • Data = unknown

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

  • @@ -138,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.

    +
    +
    +
    + +
    id: number
    +

    Worker id.

    +
  • Defined in src/worker/abstract-worker.ts:63
  • isMain: boolean
    @@ -156,7 +179,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:91
  • lastTaskTimestamp: number
    @@ -164,41 +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.

    +

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

    +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.8.2/node_modules/@types/node/async_hooks.d.ts:315
  • +
  • Defined in src/worker/abstract-worker.ts:587
  • -
    - -
    +
    + +
    +
  • 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.8.2/node_modules/@types/node/async_hooks.d.ts:311
  • Returns TaskPerformance

    +
  • Defined in src/worker/abstract-worker.ts:596
  • +
    + +
    -
    - -
    +
    + +
    -
    - +
  • Defined in src/worker/abstract-worker.ts:371
  • +
    +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:162
  • +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:494
  • +
  • Defined in src/worker/abstract-worker.ts:555
  • +
  • Defined in node_modules/.pnpm/@types+node@20.8.2/node_modules/@types/node/async_hooks.d.ts:299
  • +
  • Defined in src/worker/abstract-worker.ts:521
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:466
  • +
    + +
    +
    + +
    +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.8.2/node_modules/@types/node/async_hooks.d.ts:319
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.8.2/node_modules/@types/node/async_hooks.d.ts:278
  • @@ -576,93 +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