0.1.0 • Published 6 years ago
ithread.js v0.1.0
iThread.js
Promise Thread Webworker Async
Promise in webworker
npm install ithread.js --save
import Thread from 'ithread.js'
Thread.async(() => {
for (let index = 0; index < 5000; index++) {
console.log(index)
}
return 'async'
})
.then(resp => {
console.log(resp)
})
.catch(error => {
console.log(error)
})
0.1.0
6 years ago