Remove unused param from Executor.ts
This commit is contained in:
parent
8396323ea1
commit
927ccfa6e6
@ -12,12 +12,10 @@ export class PromiseExecutor<T, R> implements IExecutor<T, R> {
|
|||||||
constructor(readonly execute: (task: IRequest<T>) => Promise<R>) {}
|
constructor(readonly execute: (task: IRequest<T>) => Promise<R>) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SubprocessExecutor<T, R> implements IExecutor<T, R> {
|
export class SubprocessExecutor<T, R> implements IExecutor<T, R> {
|
||||||
process: cp.ChildProcess
|
process: cp.ChildProcess
|
||||||
|
|
||||||
constructor(
|
constructor(protected sourceFile: string) {
|
||||||
protected sourceFile: string, protected taskQueue: LinkedList<IRequest<T>>,
|
|
||||||
) {
|
|
||||||
this.process = cp.fork(sourceFile)
|
this.process = cp.fork(sourceFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user