X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=a6a200fbd4a044f43ec626a73f7740e148951e2d;hb=76b46937556ea55049d5c413aa0a77d0c7f47f48;hp=d0ae1a5c8989323f9e039d5ef446067df00d17e1;hpb=aac8863d208eadcb0ecb33dc44d045c26f5a444f;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index d0ae1a5c..a6a200fb 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,4 +1,4 @@ -ThreadWorker | poolifier
+ThreadWorker | poolifier - v2.6.19
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.19
    @@ -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 thread. This can only be serializable data.

      +

      Type of response the worker sends back to the main thread. This can only be structured-cloneable data.

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

    • ThreadWorker
    +
  • Defined in src/worker/thread-worker.ts:26
  • @@ -59,27 +59,38 @@ but the minimum number of workers will be guaranteed.

    Properties

    -
    +

    Accessors

    +
    id +
    +

    Methods

    -
    @@ -116,18 +127,18 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/thread-worker.ts:40
  • 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
  • isMain: boolean
    @@ -136,7 +147,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:75
  • lastTaskTimestamp: number
    @@ -145,16 +156,7 @@ but the minimum number of workers will be guaranteed.

    -
    - -
    mainWorker: undefined | null | MessagePort
    -

    Reference to main worker.

    -
    -
    +
  • Defined in src/worker/abstract-worker.ts:55
  • opts: WorkerOptions = ...
    @@ -163,16 +165,24 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:80
  • +
    + +
    port: MessagePort
    +

    Message port used to communicate with the main thread.

    +
    +
    statistics: WorkerStatistics
    -

    Performance statistics computation.

    +

    Performance statistics computation requirements.

    +
  • Defined in src/worker/abstract-worker.ts:59
  • taskFunctions: Map<string, WorkerFunction<Data, Response>>
    @@ -181,9 +191,56 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:51
  • +
    +

    Accessors

    +
    + +

    Methods

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

    +
  • Defined in node_modules/.pnpm/@types+node@20.4.2/node_modules/@types/node/async_hooks.d.ts:306
  • -
    - -
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.2/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.2/node_modules/@types/node/async_hooks.d.ts:302
  • -
    +
  • Defined in src/worker/abstract-worker.ts:368
  • +
    -
    +
    + +
    +
  • Defined in src/worker/thread-worker.ts:70
  • +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:299
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:454
  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.2/node_modules/@types/node/async_hooks.d.ts:294
  • +
  • Defined in src/worker/abstract-worker.ts:418
  • +
  • Defined in src/worker/thread-worker.ts:82
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.4.2/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in node_modules/.pnpm/@types+node@20.4.2/node_modules/@types/node/async_hooks.d.ts:277
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file