Skip to content

pause and resume causes closure of readstream #49

@braco

Description

@braco

Couldn't figure this out, but switching packages to csvtojson seemed to resolve for me

const parser = csvReader({ columns: true });
const reader = fs.createReadStream(...).pipe(parser);
while (1) {
    reader.pause()
    await something()
    reader.resume()
}

After around the 6th? resume, it will consistently close the read stream for reasons that elude me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions