An open API service indexing awesome lists of open source software.

https://github.com/msays2000/ring

Ring a circular buffer implemented as two channels in golang
https://github.com/msays2000/ring

circularbuffer golang ring ring-buffer

Last synced: 26 days ago
JSON representation

Ring a circular buffer implemented as two channels in golang

Awesome Lists containing this project

README

        

# ring

RingChannel uses two channels input and output in a way that never blocks the input.
If a new value gets added to a RingChannel's input when its buffer is full then the oldest
value in the output channel gets removed to make room (just like a standard ring-buffer).