X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Fdynamic.ts;h=b6d41e9ef9f7ff92cecf89e068c6493bafe696e3;hb=2c039e4373e86714cdf27e77440b12ee8eb2e4db;hp=90889c9b2572728ba7145da8e3a5c04bfa3c3378;hpb=dea903a811a58acdf93f11379b347bfd8088e970;p=poolifier.git diff --git a/src/pools/thread/dynamic.ts b/src/pools/thread/dynamic.ts index 90889c9b..b6d41e9e 100644 --- a/src/pools/thread/dynamic.ts +++ b/src/pools/thread/dynamic.ts @@ -1,5 +1,5 @@ -import { type PoolOptions, type PoolType, PoolTypes } from '../pool' -import { FixedThreadPool, type ThreadWorkerWithMessageChannel } from './fixed' +import { type PoolType, PoolTypes } from '../pool' +import { FixedThreadPool, type ThreadPoolOptions } from './fixed' /** * A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads. @@ -28,7 +28,7 @@ export class DynamicThreadPool< min: number, protected readonly max: number, filePath: string, - opts: PoolOptions = {} + opts: ThreadPoolOptions = {} ) { super(min, filePath, opts) }