Repository navigation
v0.2.0
What's new
This release bundles the accumulated work since v0.1.1, including new APIs and several concurrency/timeout fixes.
New APIs
PeekAt(off, p)— read at an offset past the read pointer without moving it (#31)Notify()— a selectable channel for consumers that can't block inRead(#32)WithNoCloseOnTimeout()— time out without closing the buffer (#25)ReadFromno longer holds the lock while blocked in the source reader, keeping reads/peeks responsive (#29)
Bug fixes
ReadFromkeeps the bytes returned together with a read error (#33)ReadFrom/WriteTopreserve transferred byte counts on timeout (#34)ReadBytewakes blocked writers after freeing space (#35)WriteTocounts bytes accepted by a short writer before returningio.ErrShortWrite(#36)- Blocking
Writehonours its timeout without closing the buffer in no-close mode (#37)
Thanks to all contributors.