Answering questions using worker poolz

This commit is contained in:
mrfry 2020-12-19 09:44:07 +01:00
parent f5f3b51eee
commit d8695682f7
4 changed files with 67 additions and 91 deletions

View file

@ -289,17 +289,3 @@ if (certsLoaded) {
} else {
logger.Log('Https not avaible')
}
console.log('hai')
import { init, doALongTask } from './utils/workerPool'
init()
setTimeout(() => {
doALongTask(1, {
type: 'work',
add: 1,
index: 1,
}).then((res) => {
console.log('woohoo!')
console.log(res)
})
}, 6000)