-import { dirname, extname, join } from 'path'
-import { fileURLToPath } from 'url'
+import { dirname, extname, join } from 'node:path'
+import { fileURLToPath } from 'node:url'
import type { MyData, MyResponse } from './worker'
import {
DynamicThreadPool,
}
}
)
+
+// eslint-disable-next-line @typescript-eslint/no-misused-promises
+setTimeout(async () => {
+ await fixedPool.destroy()
+ await dynamicPool.destroy()
+}, 3000)