counter

package
v1.108.103 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter[i int32 | int64] interface {
	Get() i
	Set(i) (old i)
	Add(i) (new i)
}

func NewCounter32

func NewCounter32(initialValue int32) Counter[int32]

func NewCounter64

func NewCounter64(initialValue int64) Counter[int64]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL