X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=62198283e49923fb181a0cf522035b8304ea8afc;hb=73d8141b526469f4fce46da956280f2b9146accb;hp=4b9f97027359c76adcd0f97879a17d9d3ec9693d;hpb=2946f23da560702e3f3631887e1eeb88777bd47d;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 4b9f9702..62198283 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

-
+
  • Defined in src/worker/thread-worker.ts:25
  • @@ -61,6 +61,7 @@ but the minimum number of workers will be guaranteed.

    lastTaskTimestamp mainWorker opts +taskFunctions

    Methods

    @@ -71,9 +72,9 @@ but the minimum number of workers will be guaranteed.

    getMainWorker handleError messageListener -run runAsync runInAsyncScope +runSync sendToMainWorker triggerAsyncId bind @@ -83,13 +84,13 @@ but the minimum number of workers will be guaranteed.

    Properties

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

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

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

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

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

    +
  • 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

    @@ -158,27 +167,24 @@ but the minimum number of workers will be guaranteed.

    +
  • 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
  • Returns void

    -
    - -
    +
  • Defined in src/worker/abstract-worker.ts:138
  • Returns void

    +
  • 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