Remove unused param from Executor.ts

This commit is contained in:
Jerko Steiner 2019-09-05 08:27:57 +07:00
parent 8396323ea1
commit 927ccfa6e6

View File

@ -12,12 +12,10 @@ export class PromiseExecutor<T, R> implements IExecutor<T, 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
constructor(
protected sourceFile: string, protected taskQueue: LinkedList<IRequest<T>>,
) {
constructor(protected sourceFile: string) {
this.process = cp.fork(sourceFile)
}