smartspawn/ts/smartspawn.classes.pool.ts

14 lines
253 B
TypeScript
Raw Normal View History

2018-08-02 13:31:05 +00:00
import * as plugins from './smartspawn.plugins';
export class Pool {
pool;
// the constructor for pool
constructor() {
this.pool = new plugins.threads.Pool();
}
run(workerPathArg: string) {
return this.pool.run(workerPathArg);
}
}