concurrent

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package concurrent provides in-memory containers guarded for concurrent access.

New code should import this package for safe list and map containers:

import "github.com/InsideGallery/core/memory/concurrent"

Compatibility: the legacy memory/utils package still exposes SafeList and SafeMap. Prefer NewList and NewMap here so new consumers do not depend on the older aggregate helper path.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type List

type List[V any] = legacy.SafeList[V]

List is a concurrency-safe slice-like container.

func NewList

func NewList[V any](data ...V) *List[V]

NewList returns a concurrency-safe list seeded with data.

type Map

type Map[K string, V any] = legacy.SafeMap[K, V]

Map is a concurrency-safe string-keyed map container.

func NewMap

func NewMap[K string, V any](data map[K]V) *Map[K, V]

NewMap returns a concurrency-safe map seeded with data.

Jump to

Keyboard shortcuts

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