github.com/cockroachdb/pebble@v1.1.2/objstorage/objstorageprovider/sharedcache/shared_cache_helpers_test.go (about) 1 package sharedcache 2 3 func (c *Cache) WaitForWritesToComplete() { 4 close(c.writeWorkers.tasksCh) 5 c.writeWorkers.doneWaitGroup.Wait() 6 c.writeWorkers.Start(c, c.writeWorkers.numWorkers) 7 }