Skip to content
/ ring Public

Ring a circular buffer implemented as two channels in golang

License

Notifications You must be signed in to change notification settings

msays2000/ring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).