code: func (s *intSet) sweep() {
  	for k, v := range s.members {
  		if v != s.currentGeneration {
  			delete(s.members, k)
  		}
  	}
  }
docs: // sweep removes items not in the current generation.
  // it is not thread-safe.