syncutil

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 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 Guarded

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

Guarded wraps given type in a sync.RWMutex.

func (*Guarded[T]) Load

func (g *Guarded[T]) Load() T

func (*Guarded[T]) Modify

func (g *Guarded[T]) Modify(f func(value *T))

func (*Guarded[T]) Store

func (g *Guarded[T]) Store(value T)

Jump to

Keyboard shortcuts

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