Merge branch 'master' into issue-70
[poolifier.git] / src / worker / worker-options.ts
CommitLineData
729c563d
S
1/**
2 * Options for workers.
3 */
325f50bc
S
4export interface WorkerOptions {
5 /**
729c563d
S
6 * Maximum waiting time in milliseconds for tasks.
7 *
8 * After this time, newly created workers will be terminated.
325f50bc
S
9 *
10 * @default 60.000 ms
11 */
12 maxInactiveTime?: number
13 /**
729c563d 14 * Whether your worker will perform asynchronous or not.
325f50bc
S
15 *
16 * @default false
17 */
18 async?: boolean
19}