Skip to content
yyx990803Public

About

Dead simple worker threads pool

Resources

Stars

269 stars

Watchers

11 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Okie

"Okie dokie, work work"

Dead simple worker threads pool.

const { Worker } = require('okie')

const worker = new Worker(n => n + 1, {
  max: 3 // defaults to os.cpus().length - 1
})

;(async () => {
  const result = await worker.run(1)
  console.log(result) // logs "2"

  worker.stop()
})()

About

Dead simple worker threads pool

Resources

Stars

269 stars

Watchers

11 watching

Forks

Releases

Packages

Used by

Contributors

Languages