X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=d01d5473fa97886e2f90af2ea4e3c9ade58bae64;hb=c20870b2b767a578f59fa7c9f89a7a41384b557d;hp=e6f05b4a8771f6e78cee3ff51cf381d61b852ed2;hpb=3bd6a82e43e11294af91bbd19647944ac740169e;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index e6f05b4a..d01d5473 100644 --- a/docs/classes/ThreadWorker.html +++ b/docs/classes/ThreadWorker.html @@ -26,9 +26,9 @@ but the minimum number of workers will be guaranteed.

Since

0.0.1

-
+

Type Parameters

-

Properties

-
aliveInterval?: Timeout
+
aliveInterval?: Timeout

Handler id of the aliveInterval worker alive check.

+
  • Defined in src/worker/abstract-worker.ts:42
  • -
    isMain: boolean
    +
    isMain: boolean

    Whether this is the main worker or not.

    +
  • Defined in src/worker/abstract-worker.ts:54
  • -
    lastTaskTimestamp: number
    +
    lastTaskTimestamp: number

    Timestamp of the last task processed by this worker.

    +
  • Defined in src/worker/abstract-worker.ts:38
  • -
    mainWorker: undefined | null | MessagePort
    +
    mainWorker: undefined | null | MessagePort

    Reference to main worker.

    +
  • Defined in src/worker/abstract-worker.ts:58
  • -
    opts: WorkerOptions = ...
    +
    opts: WorkerOptions = ...

    Options for the worker.

    +
  • Defined in src/worker/abstract-worker.ts:59
  • +
    + +
    taskFunctions: Map<string, WorkerFunction<Data, Response>>
    +

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

    +

    Methods

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

    Returns Func & {
        asyncResource: AsyncResource;
    }

    +
  • Defined in node_modules/.pnpm/@types+node@20.1.0/node_modules/@types/node/async_hooks.d.ts:287
  • +
  • Defined in src/worker/abstract-worker.ts:179
  • +
  • Defined in node_modules/.pnpm/@types+node@20.1.0/node_modules/@types/node/async_hooks.d.ts:308
  • +
  • Defined in src/worker/abstract-worker.ts:162
  • -

    Returns string

    +
  • Defined in src/worker/abstract-worker.ts:194
  • -
    - -
    +
  • Defined in src/worker/abstract-worker.ts:138
  • +
  • Defined in src/worker/abstract-worker.ts:231
  • +
    + +
    +
  • Defined in src/worker/thread-worker.ts:51
  • +
  • Defined in node_modules/.pnpm/@types+node@20.1.0/node_modules/@types/node/async_hooks.d.ts:317
  • @@ -485,6 +482,7 @@ the AsyncResource to which the function is bound.

  • FixedClusterPool
  • FixedThreadPool
  • PoolEmitter
  • +
  • Queue
  • ThreadWorker
  • WorkerChoiceStrategyContext
  • ClusterPoolOptions
  • @@ -508,6 +506,7 @@ the AsyncResource to which the function is bound.

  • MessageHandler
  • OnlineHandler
  • PoolEvent
  • +
  • TaskFunctions
  • ThreadWorkerWithMessageChannel
  • WorkerAsyncFunction
  • WorkerChoiceStrategy