X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fthread%2Ffixed.ts;h=13df2b5c602372fdde184989c84e8b3980aad8cf;hb=refs%2Ftags%2Fv3.1.9;hp=d2f4df8e43f8fe0a905e115510c0c22424891313;hpb=ab3bb4a4fd6b09465fb97ec4f412e57448f94306;p=poolifier.git diff --git a/src/pools/thread/fixed.ts b/src/pools/thread/fixed.ts index d2f4df8e..13df2b5c 100644 --- a/src/pools/thread/fixed.ts +++ b/src/pools/thread/fixed.ts @@ -10,6 +10,11 @@ import { AbstractPool } from '../abstract-pool' import { type PoolOptions, type PoolType, PoolTypes } from '../pool' import { type WorkerType, WorkerTypes } from '../worker' +/** + * Options for a poolifier thread pool. + */ +export type ThreadPoolOptions = PoolOptions + /** * A thread pool with a fixed number of threads. * @@ -32,7 +37,7 @@ export class FixedThreadPool< public constructor ( numberOfThreads: number, filePath: string, - opts: PoolOptions = {}, + opts: ThreadPoolOptions = {}, maximumNumberOfThreads?: number ) { super(numberOfThreads, filePath, opts, maximumNumberOfThreads)