Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skipped lines at start of file #24

Open
SylKen77 opened this issue Mar 5, 2018 · 0 comments
Open

Skipped lines at start of file #24

SylKen77 opened this issue Mar 5, 2018 · 0 comments

Comments

@SylKen77
Copy link

SylKen77 commented Mar 5, 2018

I'm an angular app on electron using line-by-line to read some json.
The problem is that lines from the start of the file are skipped.
If the file is small enough, no events get catched.

The problem is maybe in the setImmediate beginning to quick (before lr.on('line', () => ...) is called)
I tried a lr.pause immediatly after calling lr = new LineByLineReader('test.txt'); and a resume after registering all event processors... but no effect.

Why does the linereader start immediately? Isn't it more logical we have to call a start method ourselves?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant