Skip to content

Releases: lordofscripts/go-roundrobin

v1.3

21 Sep 22:12

Choose a tag to compare

Go Round-Robin (Circular Queue/Ring Buffer)

This is a pure GO implementation of a Ring Buffer based on the work of Serge Toro (thread-unsafe plain version) and Muhammed Hadi's (thread-safe version with extra features).

I merged the best of both worlds and used a code template. I also parallelized the original tests, added more checks, added tests for the WhenEmpty and WhenFull features. More importantly, I fixed a bug from both original repositories that reports the size incorrectly.

The Round-Robin Queue library is now safe for use.

Full Changelog: v1.2...v1.3