prometheus/storage
Matt T. Proud 81367893fd Use idiomatic one-to-many one-time signal pattern.
The idiomatic pattern for signalling a one-time message to multiple
consumers from a single producer is as follows:

```
  c := make(chan struct{})
  w := new(sync.WaitGroup)  // Boilerplate to ensure synchronization.

  for i := 0; i < 1000; i++ {
    w.Add(1)
    go func() {
      defer w.Done()

      for {
        select {
        case _, ok := <- c:
          if !ok {
            return
          }
        default:
          // Do something here.
        }
      }
    }()
  }

  close(c)  // Signal the one-to-many single-use message.
  w.Wait()

```

Change-Id: I755f73ba4c70a923afd342a4dea63365bdf2144b
2014-04-15 10:15:25 +02:00
..
metric Use idiomatic one-to-many one-time signal pattern. 2014-04-15 10:15:25 +02:00
raw Store samples in custom binary encoding. 2014-03-09 22:31:38 +01:00
remote Fix typo. 2014-03-25 12:22:18 +01:00
interface.go Major code cleanup in storage. 2014-02-27 15:22:37 +01:00