Commit | Line | Data |
---|---|---|
ef083f7b | 1 | import type { ThreadPoolOptions } from 'poolifier' |
a8706532 JB |
2 | |
3 | export interface BodyPayload { | |
4 | number?: number | |
5 | } | |
6 | ||
7 | export interface WorkerData<T = unknown> { | |
8 | body: T | |
9 | } | |
10 | ||
11 | export interface WorkerResponse<T = unknown> { | |
12 | body: T | |
13 | } | |
14 | ||
15 | export interface FastifyPoolifierOptions extends ThreadPoolOptions { | |
16 | workerFile: string | |
6ff35e73 | 17 | minWorkers?: number |
503bda5b | 18 | maxWorkers?: number |
a8706532 | 19 | } |