()
| 9 | |
| 10 | export class ProcessorFork extends Processor { |
| 11 | flush(): Promise<ProcessLineResult[]> { |
| 12 | return new Promise((resolve, reject) => { |
| 13 | // console.log("flush"); |
| 14 | this.finalChunk = true; |
| 15 | this.next = resolve; |
| 16 | this.childProcess.stdin?.end(); |
| 17 | // this.childProcess.stdout.on("end",()=>{ |
| 18 | // // console.log("!!!!"); |
| 19 | // this.flushResult(); |
| 20 | // }) |
| 21 | }); |
| 22 | } |
| 23 | destroy(): Promise<void> { |
| 24 | this.childProcess.kill(); |
| 25 | return Promise.resolve(); |
no outgoing calls
no test coverage detected