X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=857696e685f9b240467d9d780cee5d00be5e9514;hb=71d327d5587f0ce2b746ba33ec0cfbb3a0dc5d1b;hp=675fd4f114e860f81206eefce07dc878c0ef8b50;hpb=004a8816ae9b52388de246a9c7a5184a73915ad6;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 675fd4f1..857696e6 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -1,13 +1,13 @@ -ThreadWorker | poolifier
+ThreadWorker | poolifier - v2.7.4
-
+
  • The search index is not available
  • poolifier - v2.7.4 +
    @@ -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,46 +47,59 @@ but the minimum number of workers will be guaranteed.

    • ThreadWorker
    +
  • Defined in src/worker/thread-worker.ts:26
  • - +

    Constructors

    - +
    +
  • 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:79
  • isMain: boolean
    @@ -136,7 +149,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:91
  • lastTaskTimestamp: number
    @@ -145,45 +158,85 @@ but the minimum number of workers will be guaranteed.

    -
    - -
    mainWorker: undefined | null | MessagePort
    -

    Reference to main worker.

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

    Options for the worker.

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

    Message port used to communicate with the main worker.

    +
    +
    -
    statistics: WorkerStatistics
    -

    Performance statistics computation.

    +
    statistics: WorkerStatistics
    +

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

    Accessors

    +
    + +

    Methods

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

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.5/node_modules/@types/node/async_hooks.d.ts:315
    • @@ -221,19 +274,7 @@ but the minimum number of workers will be guaranteed.

    -
    - -
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.5/node_modules/@types/node/async_hooks.d.ts:288
    • @@ -249,7 +290,7 @@ never be called.

    +
  • Defined in node_modules/.pnpm/@types+node@20.6.5/node_modules/@types/node/async_hooks.d.ts:311
    • @@ -259,14 +300,16 @@ never be called.

    Returns MessagePort

    Reference to the main worker.

    -
    +
    -
    -

    Returns string

    Message of the error.

    +

    Returns string

    The error message.

    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
  • 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.5/node_modules/@types/node/async_hooks.d.ts:299
  • +
  • Defined in src/worker/abstract-worker.ts:521
  • +
    + +
    +
  • Defined in src/worker/thread-worker.ts:89
  • +
    + +
    +
  • Defined in node_modules/.pnpm/@types+node@20.6.5/node_modules/@types/node/async_hooks.d.ts:319
  • +
  • Defined in node_modules/.pnpm/@types+node@20.6.5/node_modules/@types/node/async_hooks.d.ts:278
  • @@ -496,77 +701,61 @@ then restore the original execution context.

    +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file