mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Answering questions using worker poolz
This commit is contained in:
parent
f5f3b51eee
commit
d8695682f7
4 changed files with 67 additions and 91 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue