Skip to content

Conversation

@wmayner
Copy link

@wmayner wmayner commented Aug 21, 2018

Add a new keyword argument from_end to Stream.from_textfile() that allows streaming from the end of the file. This allows for streams that only emit lines that are appended to the file after start() is called. Addresses #199.

Uses file.seek(0, 2) to seek to the end of the file before polling for new lines.

Add a new keyword argument `from_end` to `Stream.from_textfile()` that
allows streaming from the end of the file. This allows for streams that
only emit lines that are appended to the file after `start()` is called.
Addresses python-streamz#199.

Uses `file.seek(0, 2)` to seek to the end of the file before polling for
new lines.
martindurant pushed a commit to martindurant/streamz that referenced this pull request Mar 20, 2019
Some effect as python-streamz#201, but should now pass tests
@martindurant martindurant mentioned this pull request Mar 20, 2019
martindurant added a commit that referenced this pull request Apr 10, 2019
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

Successfully merging this pull request may close these issues.

2 participants