X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=942726629e41e0eb78362832ded7167f8865de31;hb=493f77bdef6d66ad2fcb72b405c805274b24f3db;hp=02db47b5bcc24a322c2626872cee8701ae48f47e;hpb=938d9c678aa8e70e5642feffb90604cf25c993fe;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 02db47b5..94272662 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -24,9 +24,9 @@ When the maximum number of threads is reached and workers are busy, an event is

Since

0.0.1

-
+

Type Parameters

-
+
  • Defined in src/pools/thread/dynamic.ts:17
  • @@ -69,6 +69,7 @@ When the maximum number of threads is reached and workers are busy, an event is full numberOfQueuedTasks numberOfRunningTasks +size type
    @@ -102,9 +103,9 @@ When the maximum number of threads is reached and workers are busy, an event is
  • Constructs a new poolifier dynamic thread pool.

    -
    +

    Type Parameters

    -
    +
  • Defined in src/pools/thread/dynamic.ts:29
  • Properties

    @@ -146,7 +147,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:44
  • filePath: string
    @@ -154,14 +155,14 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:79
  • max: number

    Maximum number of threads that can be created by this pool.

    +
  • Defined in src/pools/thread/dynamic.ts:31
  • numberOfWorkers: number
    @@ -169,7 +170,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:78
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -177,7 +178,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:80
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -190,7 +191,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:54
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -199,7 +200,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:64
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -207,7 +208,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:41
  • Accessors

    @@ -221,7 +222,7 @@ When the maximum number of threads is reached and workers are busy, an event is

    Returns boolean

    +
  • Defined in src/pools/thread/dynamic.ts:54
  • +
  • Defined in src/pools/thread/dynamic.ts:44
  • +
  • Defined in src/pools/abstract-pool.ts:229
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
    + +
    +
  • Defined in src/pools/thread/dynamic.ts:39
  • Methods

    @@ -286,13 +298,13 @@ Can be overridden.

    The worker.

  • -
    message: MessageValue<Response, unknown>
    +
    message: MessageValue<Response, Worker | MessagePort>

    The received message.

  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:423
  • +
  • Defined in src/pools/thread/fixed.ts:85
  • +
  • Defined in src/pools/abstract-pool.ts:412
  • +
  • Defined in src/pools/abstract-pool.ts:457
  • +
  • Defined in src/pools/abstract-pool.ts:520
  • +
  • Defined in src/pools/thread/fixed.ts:78
  • +
  • Defined in src/pools/abstract-pool.ts:375
  • +
  • Defined in src/pools/thread/fixed.ts:54
  • +
  • Defined in src/pools/abstract-pool.ts:289
  • -

    Returns Promise<Response>

    +
  • Defined in src/pools/abstract-pool.ts:342
  • +
  • Defined in src/pools/abstract-pool.ts:333
  • +
  • Defined in src/pools/thread/fixed.ts:49
  • Returns void

    Returns void

    +
  • Defined in src/pools/thread/fixed.ts:70
  • Returns void

    +
  • Defined in src/pools/thread/fixed.ts:62
  • +
  • Defined in src/pools/abstract-pool.ts:301
  • +
  • Defined in src/pools/abstract-pool.ts:252
  • +
  • Defined in src/pools/abstract-pool.ts:278
  • +
  • Defined in src/pools/abstract-pool.ts:397
  • +

    Returns void

    The listener function to execute when a message is received from a worker.

    +
    +
  • Defined in src/pools/abstract-pool.ts:543