Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Pause of reading #20

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

DmitryAstafyev
Copy link

These changes make it possible to pause/resume reading. It could be useful in case when we are passing a buffer reader forward and are losing control of it, but still, leave the possibility to pause of reading. For example, we have to read huge file and search inside of it. For search, we are using some kind of search and we are passing an instance of a reader into it. Well from that moment we can stop searching only if the searcher supports such kind of functionality, but if it doesn't - we cannot stop searching anyhow. With present changes, we can do it, even if we don't have direct access to the instance of reader.

@DmitryAstafyev
Copy link
Author

@abonander @dignifiedquire @xfix Hello, guys. Do you have some time to take a look at this suggestion?

src/lib.rs Outdated Show resolved Hide resolved
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants