const TestUtils = require('../../test-utils')
async function sleep (data) {
- return await TestUtils.workerSleepFunction(data, 2000)
+ return TestUtils.workerSleepFunction(data, 2000)
}
module.exports = new ClusterWorker(sleep, {
const TestUtils = require('../../test-utils')
async function sleep (data) {
- return await TestUtils.workerSleepFunction(data, 50000)
+ return TestUtils.workerSleepFunction(data, 50000)
}
module.exports = new ClusterWorker(sleep, {
const TestUtils = require('../../test-utils')
async function sleep (data) {
- return await TestUtils.workerSleepFunction(data, 50000)
+ return TestUtils.workerSleepFunction(data, 50000)
}
module.exports = new ClusterWorker(sleep, {
const TestUtils = require('../../test-utils')
async function sleep (data) {
- return await TestUtils.workerSleepFunction(data, 2000)
+ return TestUtils.workerSleepFunction(data, 2000)
}
module.exports = new ThreadWorker(sleep, {
const TestUtils = require('../../test-utils')
async function sleep (data) {
- return await TestUtils.workerSleepFunction(data, 50000)
+ return TestUtils.workerSleepFunction(data, 50000)
}
module.exports = new ThreadWorker(sleep, {
const TestUtils = require('../../test-utils')
async function sleep (data) {
- return await TestUtils.workerSleepFunction(data, 50000)
+ return TestUtils.workerSleepFunction(data, 50000)
}
module.exports = new ThreadWorker(sleep, {