Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicBool ¶ added in v0.35.0
type AtomicBool int32
AtomicBool is an atomic Boolean. Its methods are all atomic, thus safe to be called by multiple goroutines simultaneously. Note: When embedding into a struct one should always use *AtomicBool to avoid copy. it's a simple implmentation from https://github.com/tevino/abool
func NewBool ¶ added in v0.35.0
func NewBool(ok bool) *AtomicBool
NewBool creates an AtomicBool with given default value.
func (*AtomicBool) IsSet ¶ added in v0.35.0
func (ab *AtomicBool) IsSet() bool
IsSet returns whether the Boolean is true.
func (*AtomicBool) UnSet ¶ added in v0.35.0
func (ab *AtomicBool) UnSet()
UnSet sets the Boolean to false.
Click to show internal directories.
Click to hide internal directories.