14 lines
253 B
TypeScript
14 lines
253 B
TypeScript
|
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);
|
||
|
}
|
||
|
}
|