import { ThreadWorker } from 'poolifier'
export interface MyData {
- ok: number
+ ok: 0 | 1
}
export interface MyResponse {
constructor () {
// eslint-disable-next-line @typescript-eslint/promise-function-async
super((data: MyData) => this.process(data), {
- maxInactiveTime: 60000,
- async: true
+ maxInactiveTime: 60000
})
}