package
0.31.0
Repository: https://go.googlesource.com/tools
Documentation: pkg.go.dev

# Functions

NewPromise returns a promise for the future result of calling the specified function.
NewStore creates a new store with the given eviction policy.

# Constants

ImmediatelyEvict evicts keys as soon as they no longer have references.
NeverEvict does not evict keys.

# Structs

A Promise represents the future result of a call to a function.
A Store maps arbitrary keys to reference-counted promises.

# Interfaces

A RefCounted is a value whose functional lifetime is determined by reference counting.

# Type aliases

An EvictionPolicy controls the eviction behavior of keys in a Store when they no longer have any references.
Function is the type of a function that can be memoized.