in go/connection-refresh/btrefresh/bigtable_rotator.go [86:99]
func warmTable(tbl *bigtable.Table) {
wg := sync.WaitGroup{}
// Run the warming requests across threads to saturate the
// connection pool.
for i := 0; i < nWarmConnections; i++ {
wg.Add(1)
go func() {
// Send a request that does not actually return data.
tbl.ReadRow(context.Background(), "NOT_A_REAL_ROW")
wg.Done()
}()
}
wg.Wait()
}