X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FThreadWorker.html;h=019b702cce7e865b7184b663d56d6289c2583dfd;hb=ccb7d1a70cd9bd4eb050160517e5bc48311d014f;hp=33a4e3aeeaa05f0a573c748f6ec36cccc4340358;hpb=8d1797ad15cb2d87ac3c9904ce6df3db45c0c742;p=poolifier.git diff --git a/docs/classes/ThreadWorker.html b/docs/classes/ThreadWorker.html index 33a4e3ae..019b702c 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.2.5/node_modules/@types/node/async_hooks.d.ts:306
  • -

    Returns Func & {
        asyncResource: AsyncResource;
    }

    +
  • Defined in node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/async_hooks.d.ts:283
  • +
  • Defined in src/worker/abstract-worker.ts:179
  • +
  • Defined in node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/async_hooks.d.ts:302
  • +
  • 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:237
  • +
    + +
    +
  • Defined in src/worker/thread-worker.ts:51
  • +
  • Defined in node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/async_hooks.d.ts:311
  • @@ -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