Re:Buffer: Composable Buffers for Go
by heavenlyhash on Sunday April 05, 2015 @07:54PM
(#9325751)
Have 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.)
[ Parent
| on HN ]
I'm currently working on something that does that sort of thing. 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!