UNPKG

thread_pools

Version:

Thread pool with Auto-configuration for worker_threads, provides both thread and pool function, has thread-safe storage

61 lines (33 loc) 753 B
**2.5.4** - FIX DEPENDENCY WARNING **2.5.2** - FIX DataCloneError when pass function as result **2.5.0** - FIX DataCloneError when pass in complex function as parameter **2.4.6** - add require("thread_pools").assist **2.4.0** - auto unlock after rejection (if locked) **2.3.1** - change inner api add immutable assist Object **2.2.1** - add thread uid - fix bugs - cancel() has no effect on terminated threads **2.0.0** - add thread-safe storage **1.6.8** - add console.warn/error - unify methods - fix bugs **1.6.0** - add stoppable thread single, pool - add test case **1.4.0** - support async function **1.3.3** - env is auto shared **1.3.0** - Add shareEnv option **1.2.1** - Promise.all(threadPool(......)) is now viable