Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicCounter ¶
type AtomicCounter struct {
// contains filtered or unexported fields
}
func NewAtomicCounter ¶
func NewAtomicCounter() AtomicCounter
NewAtomicCounter returns a new counter with the default value of 0.
func (*AtomicCounter) Decrement ¶
func (ac *AtomicCounter) Decrement()
func (*AtomicCounter) Get ¶
func (ac *AtomicCounter) Get() int64
Get is not safe to use for synchronizing work between goroutines. It is just for logging the current value.
func (*AtomicCounter) Increment ¶
func (ac *AtomicCounter) Increment()
Click to show internal directories.
Click to hide internal directories.