crates.io : timeout-iterator
TimeoutIterator is a wrapper over any iterator that adds peek_timeout and next_timeout functions. The canonical use-case is parsing multi-line free-form records (such as tailing a log fime) where it is desirable to consume the very last line, and peek whether the record continues on the next time, but not block indefinitely on the peek.
Registry
-
Source
- Documentation
- JSON
- codemeta.json
purl: pkg:cargo/timeout-iterator
Keywords:
buffer
, iterator
, wrapper
, peek
, timeout
License: Apache-2.0
Latest release: about 4 years ago
First release: over 6 years ago
Dependent repositories: 1
Downloads: 20,246 total
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 hours ago