X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=5e4695d89e4f3790d9e4414a1e558abab53c00ee;hb=85003dff831b309b12d624215a8d67634af82b50;hp=3e4e283a49cd277cffe221aa6b797cf2a7fc1ff7;hpb=47c9cec4c0a1a871153e1811ec6d95c90d2c86d1;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index 3e4e283a..5e4695d8 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,4 +1,4 @@ -ClusterWorker | poolifier - v2.6.9
+ClusterWorker | poolifier - v2.6.14
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.9
+
  • The search index is not available
  • poolifier - v2.6.14
    @@ -47,7 +47,7 @@ but the minimum number of workers will be guaranteed.

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

    Methods

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

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:55
  • mainWorker: Worker
    @@ -158,7 +163,7 @@ but the minimum number of workers will be guaranteed.

    +
  • Defined in src/worker/abstract-worker.ts:79
  • opts: WorkerOptions = ...
    @@ -167,7 +172,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

    @@ -199,9 +204,42 @@ but the minimum number of workers will be guaranteed.

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

    +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:341
  • +
  • Defined in src/worker/abstract-worker.ts:363
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:276
  • +
    + +
    +
    + +
      - +
    • -

      Runs the given function asynchronously.

      +

      Runs the given task function asynchronously.

      Parameters

      • fn: WorkerAsyncFunction<Data, Response>
        -

        Function that will be executed.

        +

        Task function that will be executed.

      • -
        message: MessageValue<Data, unknown>
        -

        Input data for the given function.

        +
        task: Task<Data>
        +

        Input data for the task function.

      Returns void

    +
  • Defined in src/worker/abstract-worker.ts:426
    • @@ -393,28 +503,28 @@ then restore the original execution context.

        - +
      • -

        Runs the given function synchronously.

        +

        Runs the given task function synchronously.

        Parameters

        • fn: WorkerSyncFunction<Data, Response>
          -

          Function that will be executed.

          +

          Task function that will be executed.

        • -
          message: MessageValue<Data, unknown>
          -

          Input data for the given function.

          +
          task: Task<Data>
          +

          Input data for the task function.

        Returns void

      +
    • Defined in src/worker/abstract-worker.ts:388
    +
  • Defined in src/worker/cluster-worker.ts:52
  • +
    + +
    +
  • Defined in src/worker/abstract-worker.ts:301