we can not use libuv threadpool in nodejs by js code directly , nodejs-threadpool(based on worker_thread.js) is try to handle this. you can define job file, then nodejs-threadpool will schedule thread from threadpool to handle it. -
View it on GitHub