github.com/sequix/cortex@v1.1.6/pkg/chunk/cache/background_extra_test.go (about) 1 package cache 2 3 func Flush(c Cache) { 4 b := c.(*backgroundCache) 5 close(b.bgWrites) 6 b.wg.Wait() 7 }