Discover Packages
github.com/templexxx/randring
package
module
Version:
v0.0.3
Opens a new window with list of versions in this module.
Published: Jul 3, 2020
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
randring
Package randring provides a ring buckets for multi-producer & one-consumer
which will drop messages if buckets full and won't guarantee order.
randring only cares about memory corruption.
Expand ▾
Collapse ▴
Documentation
¶
Package randring provides a ring buckets for multi-producer & one-consumer
which will drop messages if buckets full and won't guarantee order.
randring only cares about memory corruption.
Ring provides a ring buckets for multi-producer & one-consumer.
New creates a ring.
ring size = 2 ^ n.
Push puts the data in ring in the next bucket no matter what in it.
TryPop tries to pop data from the next bucket,
return (nil, false) if no data available.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.