sharedstorage

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SharedStorage

type SharedStorage[T any, K comparable] struct {
	// contains filtered or unexported fields
}

func New

func New[T any, K comparable]() *SharedStorage[T, K]

func (*SharedStorage[T, K]) CompareAndStore

func (s *SharedStorage[T, K]) CompareAndStore(id K, obj T) T

func (*SharedStorage[T, K]) Leave

func (s *SharedStorage[T, K]) Leave(id K) (last bool)

Jump to

Keyboard shortcuts

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