code: func pruneTaskGetLocalObjects(outLocalObjects *[]fs.Object, progChan PruneProgressChan, waitg *sync.WaitGroup) {
  	defer waitg.Done()
  
  	cfg.EachLFSObject(func(obj fs.Object) error {
  		*outLocalObjects = append(*outLocalObjects, obj)
  		progChan <- PruneProgress{PruneProgressTypeLocal, 1}
  		return nil
  	})
  }
docs: // Background task, must call waitg.Done() once at end