X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractWorker.html;h=b29b5f35df304a9632c2dca952421cdba5179c09;hb=5441aea6894a5031667db6447634fa5d97f69e36;hp=c6203c2b9d91cebfddd3f4710bd728ab6602c531;hpb=f04db52f666beefda86a0444fb9a28d410211b3f;p=poolifier.git diff --git a/docs/classes/AbstractWorker.html b/docs/classes/AbstractWorker.html index c6203c2b..b29b5f35 100644 --- a/docs/classes/AbstractWorker.html +++ b/docs/classes/AbstractWorker.html @@ -1,4 +1,4 @@ -AbstractWorker | poolifier - v2.6.20
+AbstractWorker | poolifier - v2.6.28
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.20
+
  • The search index is not available
  • poolifier - v2.6.28
  • -
    taskFunctions: WorkerFunction<Data, Response> | TaskFunctions<Data, Response>
    +
    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.

  • @@ -151,7 +153,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:73
  • Properties

    @@ -161,7 +163,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:63
  • id: number
    @@ -169,7 +171,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:47
  • isMain: boolean
    @@ -177,7 +179,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:75
  • lastTaskTimestamp: number
    @@ -185,7 +187,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:55
  • mainWorker: MainWorker
    @@ -193,7 +195,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:76
  • opts: WorkerOptions = ...
    @@ -201,7 +203,7 @@
    +
  • Defined in src/worker/abstract-worker.ts:78
  • statistics: WorkerStatistics
    @@ -209,15 +211,15 @@
    +
  • 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

    @@ -237,21 +239,21 @@ If a task function with the same name already exists, it is replaced.

  • -
    fn: WorkerFunction<Data, Response>
    +
    fn: TaskFunction<Data, Response>

    The task function to add.

  • Returns boolean

    Whether the task function was added or not.

    -

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the name parameter is not a string.

    +

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the name parameter is not a string or an empty string.

    Throws

    https://nodejs.org/api/errors.html#class-error If the name parameter is the default task function reserved name.

    Throws

    https://nodejs.org/api/errors.html#class-typeerror If the fn parameter is not a function.

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

    +
  • Defined in src/worker/abstract-worker.ts:569
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • 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
  • -

    Returns WorkerFunction<Data, Response>

    The task function.

    +

    Returns TaskFunction<Data, Response>

    The task function.

    Throws

    https://nodejs.org/api/errors.html#class-error If the task function is not found.

    +
  • Defined in src/worker/abstract-worker.ts:560
  • +
  • Defined in src/worker/abstract-worker.ts:456
  • +
  • Defined in src/worker/abstract-worker.ts:342
  • +
  • Defined in src/worker/abstract-worker.ts:313
  • +
  • Defined in src/worker/abstract-worker.ts:174
  • +
  • Defined in src/worker/abstract-worker.ts:267
  • +
  • Defined in src/worker/abstract-worker.ts:320
  • +
  • Defined in src/worker/abstract-worker.ts:238
  • +
  • Defined in src/worker/abstract-worker.ts:466
  • +
  • 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 src/worker/abstract-worker.ts:280
  • +
  • Defined in src/worker/abstract-worker.ts:389
  • +
  • Defined in src/worker/abstract-worker.ts:400
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:311
  • +
  • Defined in src/worker/abstract-worker.ts:599
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.0/node_modules/@types/node/async_hooks.d.ts:277