thread-worker.js

1.0.0 • Public • Published

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)
})

Package Sidebar

Install

npm i thread-worker.js

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • isunset