Skip to content

v1.0.0

Choose a tag to compare

@AmrSaber AmrSaber released this 06 Jun 15:08
· 1 commit to master since this release
9a2f3a1

Release Notes

Now that I got some feedback about the package, it's in a stable state, and I will be using semantic versioning from now on, trying to keep the current interface as much as possible.

Breaking Changes

  • Capacity and SetCapacity are removed.
  • NewBlockingDequeue is updated to receive the used buffer slice. This is to delegate resource allocation to the user.
  • Listeners onEmpty and onFull are removed. They were not following the general conventions of Go and were not of significant importance.

Other Updates

  • Dequeue locking is updated to use a single lock for the whole data structure. This simplifies things and prevents potential dead locks.
  • No longer using built-in container/list. Instead, accept slice buffer from the user and use it as ring buffer.
  • Consequently to the previous point, the package no longer offers infinite dequeue. It's always limited.
  • Updated tests and removed tests related to capacity.