package atomic

import "github.com/streadway/handy/atomic"

Package atomic implements atomic accessors for primitives

Index

Types

type Int

type Int int64

Int implements atomic 64bit int operations

func (*Int) Add

func (i *Int) Add(n int64)

Add increments i by n

func (*Int) Get

func (i *Int) Get() int64

Get returns the value without races.

func (*Int) String

func (i *Int) String() string

String returns the base 10 formatted value.

Source Files

doc.go int.go

Version
v0.0.0-20200128134331-0f66f006fb2e (latest)
Published
Jan 28, 2020
Platform
linux/amd64
Imports
2 packages
Last checked
2 months ago

Tools for package owners.