Documentation
¶
Overview ¶
Package atomicbool provides an atomic boolean type that can be safely shared between goroutines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicBool ¶
type AtomicBool struct {
// contains filtered or unexported fields
}
func New ¶
func New(state bool) *AtomicBool
New creates a new instance of `AtomicBool` with the initial value of `state`.
func (*AtomicBool) Store ¶
func (a *AtomicBool) Store(state bool) bool
Store stores `state` and returns old value.
Click to show internal directories.
Click to hide internal directories.