issues
search
PortBlueSky
/
thread-puddle
A library to pool Node.js worker threads, automatically exposing exported module methods using Proxy Objects. :rocket:
15
stars
3
forks
source link
Chore/production
#31
Closed
kommander
closed
2 years ago
kommander
commented
2 years ago
Refill
automatically refill pool when workers exit via
autoRefill: true
pool option
manually refill pool whenever via
worker.pool.refill()
Drain (graceful shutdown)
Wait until all calls are done and workers are idle, then terminate, via
worker.pool.drain()
Frees callbacks on main thread when a worker exits
autoRefill: true
pool optionworker.pool.refill()
worker.pool.drain()