X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=b29b5f35df304a9632c2dca952421cdba5179c09;hb=5441aea6894a5031667db6447634fa5d97f69e36;hp=c612763d4b2910504cd1652a2ce65ecb801604a2;hpb=52d3ec6b2aea8279b0ac670bd6291efa90466a60;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index c612763d..b29b5f35 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -AbstractWorker | poolifier
+AbstractWorker | poolifier - v2.6.28
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.28
    @@ -47,7 +47,7 @@
  • ClusterWorker
  • ThreadWorker
  • +
  • Defined in src/worker/abstract-worker.ts:39
  • @@ -59,20 +59,23 @@

    Properties

    -

    Methods

    -
    @@ -94,7 +108,7 @@
      - +
    • Constructs a new poolifier worker.

      @@ -102,7 +116,7 @@

      Type Parameters

      • -

        MainWorker extends Worker | MessagePort

      • +

        MainWorker extends MessagePort | Worker

      • Data = unknown

      • @@ -121,13 +135,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: 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.

      • @@ -139,17 +153,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
    @@ -157,7 +179,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • lastTaskTimestamp: number
    @@ -165,15 +187,15 @@
    -
    - +
  • Defined in src/worker/abstract-worker.ts:55
  • +
    +
    mainWorker: MainWorker

    Reference to main worker.

    +
  • Defined in src/worker/abstract-worker.ts:76
  • opts: WorkerOptions = ...
    @@ -181,7 +203,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:78
  • statistics: WorkerStatistics
    @@ -189,17 +211,49 @@
    +
  • 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

    +
    + +
      @@ -210,15 +264,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:569
  • -
    - -
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:410
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:593
  • +
  • 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:578
  • +
  • Defined in src/worker/abstract-worker.ts:424
  • +
  • Defined in src/worker/abstract-worker.ts:560
  • -

    Returns string

    Message of the error.

    +

    Returns string

    The error message.

    + +
    +
    + +
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:267
  • +
  • Defined in src/worker/abstract-worker.ts:320
  • +
    + +
    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:518
  • +
  • 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:481
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:436
  • +
    + +
    +
    + +
    +
    + +
    +
  • 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