node version

This commit is contained in:
Pavel Murygin
2023-02-08 23:57:12 +04:00
parent 1053bee152
commit 620af63d93
9 changed files with 198 additions and 47 deletions

View File

@ -0,0 +1,10 @@
import { LazyLoader } from '../../interfaces/index.js';
import type { WorkerImplementation } from 'threads/dist/types/master';
import { Worker } from 'threads';
export class WorkerLoader extends LazyLoader<WorkerImplementation> {
constructor() {
super(() => new Worker('./'));
}
}