X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=1d5f2f8b32c9fa75cee690b8f24817765d04c2bd;hb=5a24d71c903b876f660285d52b2369a5496954e5;hp=ab870f4e63bd8ab832109f02998828c7e3a3ed6e;hpb=46e29227a97fe04f886969199f1c14338af50543;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index ab870f4e..1d5f2f8b 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,4 +1,4 @@ -ClusterWorker | poolifier - v2.6.30
+ClusterWorker | poolifier - v2.6.36
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.30
+
  • The search index is not available
  • poolifier - v2.6.36
    @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

    • ClusterWorker
    +
  • Defined in src/worker/cluster-worker.ts:21
  • @@ -116,18 +116,16 @@ but the minimum number of workers will be guaranteed.

  • taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>

    Task function(s) processed by the worker when the pool's execution function is invoked.

    -
    -
  • +
  • opts: WorkerOptions = {}

    Options for the worker.

    -
    -
  • +

    Returns ClusterWorker<Data, Response>

    +
  • Defined in src/worker/cluster-worker.ts:31
  • Properties

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

    +
  • Defined in src/worker/abstract-worker.ts:73
  • isMain: boolean
    @@ -147,7 +145,7 @@ but the minimum number of workers will be guaranteed.

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

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

    +
  • Defined in src/worker/abstract-worker.ts:88
  • statistics: WorkerStatistics
    @@ -174,7 +172,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:69
  • taskFunctions: Map<string, TaskFunction<Data, Response>>
    @@ -183,7 +181,7 @@ but the minimum number of workers will be guaranteed.

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

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

    +
  • Defined in src/worker/cluster-worker.ts:65
  • Methods

    @@ -214,13 +212,11 @@ If a task function with the same name already exists, it is replaced.

  • name: string

    The name of the task function to add.

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

    The task function to add.

    -
    -
  • +

    Returns boolean

    Whether the task function was added or not.

    @@ -232,7 +228,7 @@ If a task function with the same name already exists, it is replaced.

    +
  • Defined in src/worker/abstract-worker.ts:186
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.6/node_modules/@types/node/async_hooks.d.ts:306
  • +

    Returns Func

    Since

    v14.8.0, v12.19.0

    +
  • Defined in node_modules/.pnpm/@types+node@20.5.6/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.6/node_modules/@types/node/async_hooks.d.ts:302
  • +
  • Defined in src/worker/abstract-worker.ts:426
  • +

    Returns string

    The error message.

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

    Returns void

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

    Returns void

    +
  • Defined in src/worker/cluster-worker.ts:45
  • +

    Returns boolean

    Whether the worker has a task function with the given name or not.

    @@ -383,7 +374,7 @@ never be called.

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

    Returns void

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

    Returns boolean

    Whether the task function existed and was removed or not.

    @@ -443,7 +432,7 @@ never be called.

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

    Returns void

    Throws

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

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

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:533
  • Optional thisArg: This

    The receiver to be used for the function call.

    -
    -
  • +Optional
  • Rest ...args: any[]

    Optional arguments to pass to the function.

    -
    -
  • +Rest

    Returns Result

    Since

    v9.6.0

    +
  • Defined in node_modules/.pnpm/@types+node@20.5.6/node_modules/@types/node/async_hooks.d.ts:294
  • +

    Returns void

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

    Returns void

    +
  • Defined in src/worker/cluster-worker.ts:70
  • +

    Returns boolean

    Whether the default task function was set or not.

    @@ -629,7 +608,7 @@ then restore the original execution context.

    +
  • Defined in src/worker/abstract-worker.ts:278
  • +
  • Defined in node_modules/.pnpm/@types+node@20.5.6/node_modules/@types/node/async_hooks.d.ts:311
  • +
    Optional thisArg: ThisArg
    Optional

    Returns Func

    Since

    v14.8.0, v12.19.0

    +
  • Defined in node_modules/.pnpm/@types+node@20.5.6/node_modules/@types/node/async_hooks.d.ts:277
  • -

    Generated using TypeDoc

    +

    Generated using TypeDoc

    \ No newline at end of file