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

Final callback is called even if all lines have not been read. #11

Open
rickhuizinga opened this issue Dec 11, 2013 · 0 comments
Open
Labels

Comments

@rickhuizinga
Copy link

The eachLine function is documented to return an object with one property, then. It is documented as:

"If a callback is provided to then, it will be called once all lines have been read."

The problem is that this callback function is called when reading of the file is stopped prematurely by returning (synchronous version) or passing (asynchronous version) false to the eachLine callback function. In this case, not all of the lines in the file have been read so the final callback function should not be called.

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

No branches or pull requests

2 participants