Merge dependabot/npm_and_yarn/examples/typescript/http-server-pool/fastify-hybrid...
[poolifier.git] / benchmarks / versus-external-pools / utils.mjs
CommitLineData
001be8c5
JB
1export const executeAsyncFn = async fn => {
2 try {
3 await fn()
4 } catch (e) {
5 console.error(e)
6 // eslint-disable-next-line n/no-process-exit
7 process.exit(1)
8 }
9}