Simplify worker choosing (#138)
[poolifier.git] / src / worker / worker-options.ts
CommitLineData
325f50bc
S
1export interface WorkerOptions {
2 /**
3 * Max time to wait tasks to work on (in ms), after this period the new worker threads will die.
4 *
5 * @default 60.000 ms
6 */
7 maxInactiveTime?: number
8 /**
9 * `true` if your function contains async pieces, else `false`.
10 *
11 * @default false
12 */
13 async?: boolean
14}