cbool

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-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 CBool

type CBool struct {
	// contains filtered or unexported fields
}

CBool a concurrent safe bool

func New

func New(v bool) *CBool

New create an instance of CBool

func (*CBool) Get

func (cb *CBool) Get() bool

Get return the bool value

func (*CBool) Set

func (cb *CBool) Set(v bool)

Set to set the bool value

func (*CBool) SetC added in v0.2.4

func (cb *CBool) SetC(v bool) <-chan struct{}

SetC to set the bool value and return a closed channel

Jump to

Keyboard shortcuts

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