()
| 173 | } |
| 174 | |
| 175 | function exitProcess(): void { |
| 176 | // Clean up open handles so the worker ideally exits gracefully |
| 177 | parentPort!.removeListener('message', messageListener); |
| 178 | } |
| 179 | |
| 180 | function execMethod(method: string, args: Array<unknown>): void { |
| 181 | const main = require(file!); |