rwvalue

package
v0.0.0-...-97acc8f Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Concurrent safe value wrapper

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RWValue

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

func New

func New[T any](v *T) *RWValue[T]

func (*RWValue[T]) Clear

func (v *RWValue[T]) Clear()

func (*RWValue[T]) Get

func (v *RWValue[T]) Get() *T

func (*RWValue[T]) Set

func (v *RWValue[T]) Set(val *T)

Jump to

Keyboard shortcuts

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