concurrent

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 2 Imported by: 1

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