package atomic

import "github.com/containerd/containerd/pkg/atomic"

Index

Types

type Bool

type Bool interface {
	Set()
	Unset()
	IsSet() bool
}

Bool is an atomic Boolean, Its methods are all atomic, thus safe to be called by multiple goroutines simultaneously.

func NewBool

func NewBool(ok bool) Bool

NewBool creates an Bool with given default value

Source Files

atomic_boolean.go

Version
v1.6.29
Published
Mar 8, 2024
Platform
js/wasm
Imports
1 packages
Last checked
2 minutes ago

Tools for package owners.