Improve JSDoc comments (#130)
[poolifier.git] / src / worker / worker-options.ts
1 /**
2 * Options for workers.
3 */
4 export interface WorkerOptions {
5 /**
6 * Maximum waiting time in milliseconds for tasks.
7 *
8 * After this time, newly created workers will be terminated.
9 *
10 * @default 60.000 ms
11 */
12 maxInactiveTime?: number
13 /**
14 * Whether your worker will perform asynchronous or not.
15 *
16 * @default false
17 */
18 async?: boolean
19 }