Skip to content

v0.2.0

Choose a tag to compare

@smallnest smallnest released this 19 Oct 02:36
· 2 commits to master since this release

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 in Read (#32)
  • WithNoCloseOnTimeout() — time out without closing the buffer (#25)
  • ReadFrom no longer holds the lock while blocked in the source reader, keeping reads/peeks responsive (#29)

Bug fixes

  • ReadFrom keeps the bytes returned together with a read error (#33)
  • ReadFrom/WriteTo preserve transferred byte counts on timeout (#34)
  • ReadByte wakes blocked writers after freeing space (#35)
  • WriteTo counts bytes accepted by a short writer before returning io.ErrShortWrite (#36)
  • Blocking Write honours its timeout without closing the buffer in no-close mode (#37)

Thanks to all contributors.