1.0.3 • Published 2 years ago
workthethread v1.0.3
WorkTheThread
Also having a hard time with Worker Threads? With this package you can just throw in a function and some arguments and it will do the rest on a different thread!
const WorkTheThread = require('WorkTheThread');
function add(x, y) {
return x + y;
}
WorkTheThread(add, 2, 5); // returns 7