package
Version:
v0.0.0-...-5948a14
Opens a new window with list of versions in this module.
Published: Jul 26, 2020
License: CC0-1.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Func func(key string, done <-chan struct{}) (interface{}, error)
Func is a memoization function
Memo represents a memoized cache
New returns a memoiztaion of f. Clients must subsequently call Close.
func (memo *Memo) Close()
Close the channel for requests
func (memo *Memo) Get(key string, done <-chan struct{}) (interface{}, error)
Get invokes the function to be memoized
Source Files
¶
Click to show internal directories.
Click to hide internal directories.