Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-hybrid...
[poolifier.git] / src / utils.ts
index a33758ce64c1ad72890b8d6e8b40b96336316c65..88562ca3531f9acbb446414075366a4b50ba1ce4 100644 (file)
@@ -1,5 +1,6 @@
-import * as os from 'node:os'
 import { getRandomValues } from 'node:crypto'
+import * as os from 'node:os'
+
 import type { KillBehavior } from './worker/worker-options.js'
 
 /**
@@ -200,7 +201,7 @@ export const max = (...args: number[]): number =>
  * @internal
  */
 // eslint-disable-next-line @typescript-eslint/no-explicit-any
-export const once = <T, A extends any[], R>(
+export const once = <A extends any[], R, T>(
   fn: (...args: A) => R,
   context: T
 ): ((...args: A) => R) => {