(fn func(ctx context.Context) (map[string]*CommandInfo, error))
| 5208 | } |
| 5209 | |
| 5210 | func newCmdsInfoCache(fn func(ctx context.Context) (map[string]*CommandInfo, error)) *cmdsInfoCache { |
| 5211 | return &cmdsInfoCache{ |
| 5212 | fn: fn, |
| 5213 | } |
| 5214 | } |
| 5215 | |
| 5216 | func (c *cmdsInfoCache) Get(ctx context.Context) (map[string]*CommandInfo, error) { |
| 5217 | c.refreshLock.Lock() |
no outgoing calls