concurrency

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Unlicense Imports: 2 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[T comparable, E any] struct {
	// contains filtered or unexported fields
}

func NewSyncMap

func NewSyncMap[T comparable, E any](m map[T]E) *SyncMap[T, E]

func (*SyncMap[T, E]) Delete

func (m *SyncMap[T, E]) Delete(idx T)

func (*SyncMap[T, E]) Get

func (m *SyncMap[T, E]) Get(idx T) (E, bool)

func (*SyncMap[T, E]) Keys

func (m *SyncMap[T, E]) Keys() []T

func (*SyncMap[T, E]) Set

func (m *SyncMap[T, E]) Set(idx T, e E)

Jump to

Keyboard shortcuts

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