gmll
Version:
A generic launcher core for building custom launchers
14 lines (13 loc) • 444 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeWorker = void 0;
const path_1 = require("path");
const worker_threads_1 = require("worker_threads");
/**
* @param options options to initalize a worker
* @returns a fully created worker instance
*/
function makeWorker(options) {
return new worker_threads_1.Worker((0, path_1.join)(__dirname, "get.js"), options);
}
exports.makeWorker = makeWorker;
;