X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicThreadPool.html;h=c6a56f040a48d913de8cb6390ee465ee7773f65a;hb=a2742ce794032ee57b3ec1203c500b1aecca34f0;hp=1331afde32fa324a27847b34e4a191d4e33aac87;hpb=bf4dcb92f8d370524a2975961731fe6c4e8b083c;p=poolifier.git diff --git a/docs/classes/DynamicThreadPool.html b/docs/classes/DynamicThreadPool.html index 1331afde..c6a56f04 100644 --- a/docs/classes/DynamicThreadPool.html +++ b/docs/classes/DynamicThreadPool.html @@ -42,7 +42,7 @@ When the maximum number of threads is reached and workers are busy, an event is +
  • Defined in src/pools/thread/dynamic.ts:15
  • @@ -67,8 +67,9 @@ When the maximum number of threads is reached and workers are busy, an event is

    Accessors

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

    Returns DynamicThreadPool<Data, Response>

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

    @@ -142,11 +143,13 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:46
  • filePath: string
    @@ -154,14 +157,14 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:81
  • max: number

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

    +
  • Defined in src/pools/thread/dynamic.ts:29
  • numberOfWorkers: number
    @@ -169,7 +172,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:80
  • opts: PoolOptions<ThreadWorkerWithMessageChannel>
    @@ -177,7 +180,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:82
  • promiseResponseMap: Map<string, PromiseResponseWrapper<ThreadWorkerWithMessageChannel, Response>> = ...
    @@ -190,7 +193,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:56
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<ThreadWorkerWithMessageChannel, Data, Response>
    @@ -199,7 +202,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:66
  • workerNodes: WorkerNode<ThreadWorkerWithMessageChannel, Data>[] = []
    @@ -207,7 +210,7 @@ When the maximum number of threads is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:43
  • Accessors

    @@ -221,7 +224,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:52
  • -
    - -
    +
    + +
    +
    + +
    -
    - -
    +
    + +
    +
  • Defined in src/pools/thread/fixed.ts:99
  • +
  • Defined in src/pools/thread/dynamic.ts:37
  • Methods

    @@ -286,13 +300,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:450
  • +
  • Defined in src/pools/thread/fixed.ts:84
  • +
  • Defined in src/pools/abstract-pool.ts:439
  • +
  • Defined in src/pools/abstract-pool.ts:518
  • +
  • Defined in src/pools/abstract-pool.ts:581
  • +
  • Defined in src/pools/thread/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:402
  • +
  • Defined in src/pools/thread/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:314
  • Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

    +
  • Defined in src/pools/abstract-pool.ts:367
  • +
  • Defined in src/pools/abstract-pool.ts:358
  • +
  • Defined in src/pools/thread/fixed.ts:48
  • Returns void

    Returns void

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

    +
  • Defined in src/pools/thread/fixed.ts:61
  • +
  • Defined in src/pools/abstract-pool.ts:326
  • +
  • Defined in src/pools/abstract-pool.ts:273
  • +
  • Defined in src/pools/abstract-pool.ts:303
  • +
  • Defined in src/pools/abstract-pool.ts:424
  • Returns void

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

    +
  • Defined in src/pools/abstract-pool.ts:614
  • Generated using TypeDoc