Lines Matching refs:value
28 func (once *OncePer) maybeWaitFor(key OnceKey, value interface{}) interface{} {
29 if wait, isWaiter := value.(onceValueWaiter); isWaiter {
33 value, _ = once.values.Load(key)
34 if _, isWaiter := value.(onceValueWaiter); isWaiter {
39 return value
44 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} {
58 v := value()
77 func (once *OncePer) OnceStringSlice(key OnceKey, value func() []string) []string {
78 return once.Once(key, func() interface{} { return value() }).([]string)
82 func (once *OncePer) Once2StringSlice(key OnceKey, value func() ([]string, []string)) ([]string, []…
86 s[0], s[1] = value()