MCPcopy Create free account
hub / github.com/Keyang/node-csvtojson / flush

Method flush

src/ProcessFork.ts:11–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10export 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();

Callers 4

browser.jsFile · 0.45
csvtojson.min.jsFile · 0.45
Converter.jsFile · 0.45
_flushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected