Discover Packages
github.com/RexLetRock/zlib
zcount
package
Version:
v0.0.0-...-9d1b792
Opens a new window with list of versions in this module.
Published: Aug 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
A Counter is a striped int64 counter.
Should be preferred over a single atomically updated int64
counter in high contention scenarios.
A Counter must not be copied after first use.
Add adds the delta to the counter.
Add adds the delta to the counter.
Dec decrements the counter by 1.
Inc increments the counter by 1.
Reset resets the counter to zero.
This method should only be used when it is known that there are
no concurrent modifications of the counter.
Value returns the current counter value.
The returned value may not include all of the latest operations in
presence of concurrent modifications of the counter.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.