Microjob
microjob
worker threads into easy-to-use routines for CPU-bound.
microjob is a tiny wrapper for threads (worker_threads) and is intended to perform heavy CPU loads using anonymous functions.
GET IT: npm install microjob
Sample usage:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | |
P.S: To run this today, you we need node v>=10 and execute it via --experimental-worker flag.
GIF FTW!
