atomic

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slice

type Slice[T any] struct {
	// contains filtered or unexported fields
}

Slice exposes a slice of a type in a race-free manner.

func (*Slice[T]) Add

func (a *Slice[T]) Add(input T)

func (*Slice[T]) Len

func (a *Slice[T]) Len() int

func (*Slice[T]) Range

func (a *Slice[T]) Range(f func(pool T) bool)

func (*Slice[T]) Reset

func (a *Slice[T]) Reset()

func (*Slice[T]) Set

func (a *Slice[T]) Set(values []T)

Jump to

Keyboard shortcuts

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