3 ms·
Hey author here, happy to answer your questions.
by djherbis 12y ago
Hey author here, happy to answer your questions.
- heavenlyhash 12y agoHave you / would you consider extending this concept to buffers that are still single writer but support many readers -- something like a `FreshReader() io.Reader` function that returns a reader that starts from the beginning again? (I have an application that needs this semantic and ended up just rolling it quick-and-dirty; this sounds like very similar concepts done up with better gift wrapping.)
- djherbis 12y agoI'm currently working on something that does that sort of thing. https://github.com/djherbis/fscache https://github.com/djherbis/fscache It doesn't have the composability features yet, but it already handles 1 writer with many concurrent readers. Let me know if that helps!