1.0.0 • Published 6 years ago
thread-worker.js v1.0.0
Thread
javascript web worker
// demo ========
thread.async (() => {
let j = 0
for (let i = 0; i < 10; i++) {
console.log(`async :: ${i}`)
j++
}
return j
}, resp => {
console.log(resp)
}, error => {
console.error(error)
})
1.0.0
6 years ago