Skip to content

GTramp/iThread.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Promise Thread Webworker Async

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published