build(deps-dev): apply updates
[poolifier.git] / tests / worker-files / cluster / asyncErrorWorker.cjs
index 022b4536ce1d18ae21eae0c2f245a3681371d2f0..06797611c71dc83448f4f32a7e03877518f01e85 100644 (file)
@@ -2,6 +2,10 @@
 const { ClusterWorker, KillBehaviors } = require('../../../lib/index.cjs')
 const { sleepTaskFunction } = require('../../test-utils.cjs')
 
+/**
+ *
+ * @param data
+ */
 async function error (data) {
   return sleepTaskFunction(
     data,
@@ -13,5 +17,5 @@ async function error (data) {
 
 module.exports = new ClusterWorker(error, {
   killBehavior: KillBehaviors.HARD,
-  maxInactiveTime: 500
+  maxInactiveTime: 500,
 })