yyx990803 / Okie
Licence: mit
Dead simple worker threads pool
Stars: ✭ 222
Programming Languages
typescript
32286 projects
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()
})()
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].