concurrent

package
v0.0.0-...-d4b30f7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader[V any] func(id string) (V, error)

type Map

type Map[V any] struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap[V any](loader Loader[V]) Map[V]

func (Map[V]) Get

func (m Map[V]) Get(id string) (V, error)

func (Map[V]) Put

func (m Map[V]) Put(id string, value V)

Jump to

Keyboard shortcuts

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