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
45 func (once *OncePer) Once(key OnceKey, value func() interface{}) interface{} {
66 v = value()
83 func (once *OncePer) OnceStringSlice(key OnceKey, value func() []string) []string {
84 return once.Once(key, func() interface{} { return value() }).([]string)
88 func (once *OncePer) Once2StringSlice(key OnceKey, value func() ([]string, []string)) ([]string, []…
92 s[0], s[1] = value()
99 func (once *OncePer) OncePath(key OnceKey, value func() Path) Path {
100 return once.Once(key, func() interface{} { return value() }).(Path)
104 func (once *OncePer) OnceSourcePath(key OnceKey, value func() SourcePath) SourcePath {
105 return once.Once(key, func() interface{} { return value() }).(SourcePath)