X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FClusterWorker.html;h=335e4252dac1237f048dc92f375bc4db676c7ea2;hb=ec06e4dd01adf7aa4bab470c59da42c19d863d0b;hp=cd774363ecf8d1f5de00631ef0e742b2bbc74f13;hpb=5730d3edf64cd878680806de6979bdca604573d1;p=poolifier.git diff --git a/docs/classes/ClusterWorker.html b/docs/classes/ClusterWorker.html index cd774363..335e4252 100644 --- a/docs/classes/ClusterWorker.html +++ b/docs/classes/ClusterWorker.html @@ -1,4 +1,4 @@ -ClusterWorker | poolifier
+ClusterWorker | poolifier
-
+
@@ -83,7 +83,7 @@ but the minimum number of workers will be guaranteed.

    - +
  • Constructs a new poolifier cluster worker.

    @@ -98,28 +98,28 @@ but the minimum number of workers will be guaranteed.

    Parameters

    • -
      fn: ((data: Data) => Response)
      +
      fn: ((data: Data) => Response)

      Function processed by the worker when the pool's execution function is invoked.

        • -
        • (data: Data): Response
        • +
        • (data: Data): Response
        • Parameters

          • -
            data: Data
          -

          Returns Response

    • +
      data: Data
+

Returns Response

  • opts: WorkerOptions = {}

    Options for the worker.

  • -

    Returns ClusterWorker<Data, Response>

    Properties

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

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

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

    +
  • Defined in src/worker/abstract-worker.ts:27
  • mainWorker: undefined | null | Worker
    @@ -153,7 +153,7 @@ but the minimum number of workers will be guaranteed.

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

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

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

      - +
    • Binds the given function to execute to this AsyncResource's scope.

      The returned function will have an asyncResource property referencing @@ -196,10 +196,10 @@ the AsyncResource to which the function is bound.

      Parameters

      • -
        fn: Func
        +
        fn: Func

        The function to bind to the current AsyncResource.

      -

      Returns Func & {
          asyncResource: AsyncResource;
      }

    @@ -213,11 +213,11 @@ the AsyncResource to which the function is bound.

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:146
  • @@ -242,7 +242,7 @@ never be called.

    Returns Worker

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

    Returns Response

    Returns void

    +
  • Defined in src/worker/abstract-worker.ts:84
  • -
    message: MessageValue<Data, unknown>
    +
    message: MessageValue<Data, unknown>

    Input data for the given function.

  • Returns void

    +
  • Defined in src/worker/abstract-worker.ts:171
  • -
    message: MessageValue<Data, unknown>
    +
    message: MessageValue<Data, unknown>

    Input data for the given function.

  • Returns void

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

    The receiver to be used for the function call.

  • Rest ...args: any[]

    Optional arguments to pass to the function.

  • -

    Returns Result

    Returns void

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

    Returns Func & {
        asyncResource: AsyncResource;
    }

    - + +

    Generated using TypeDoc

    -
    \ No newline at end of file +
    \ No newline at end of file