atm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package atm provides a collection of thread-safe types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool uint32

Bool provides an atomic boolean value.

func NewBool

func NewBool(in bool) Bool

NewBool returns a Bool set to the provided starting value.

func (*Bool) IsFalse

func (b *Bool) IsFalse() bool

IsFalse returns false if the value is false.

func (*Bool) IsTrue

func (b *Bool) IsTrue() bool

IsTrue returns true if the value is true.

func (*Bool) Load

func (b *Bool) Load() bool

Load returns a bool representing the value.

func (*Bool) SetFalse

func (b *Bool) SetFalse()

SetFalse sets the Bool to false.

func (*Bool) SetTrue

func (b *Bool) SetTrue()

SetTrue sets the Bool to true.

Jump to

Keyboard shortcuts

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