syncmap

package
v0.3.1-rc.8 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncMap

type SyncMap[key, value any] struct {
	// contains filtered or unexported fields
}

func (*SyncMap[T1, T2]) Delete

func (a *SyncMap[T1, T2]) Delete(key T1)

func (*SyncMap[T1, T2]) Load

func (a *SyncMap[T1, T2]) Load(key T1) (r T2, _ bool)

func (*SyncMap[T1, T2]) LoadAndDelete

func (a *SyncMap[T1, T2]) LoadAndDelete(key T1) (r T2, _ bool)

func (*SyncMap[T1, T2]) LoadOrStore

func (a *SyncMap[T1, T2]) LoadOrStore(key T1, value T2) (r T2, _ bool)

func (*SyncMap[T1, T2]) Range

func (a *SyncMap[T1, T2]) Range(f func(key T1, value T2) bool)

func (*SyncMap[T1, T2]) Store

func (a *SyncMap[T1, T2]) Store(key T1, value T2)

func (*SyncMap[key, T2]) ValueSlice

func (a *SyncMap[key, T2]) ValueSlice() (r []T2)

Jump to

Keyboard shortcuts

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