Beispiel #1
0
func notifyRemoval() {
	log.Debugln("Checking removal notification...")
	if chn.NeedsRemovalNotification() {
		log.Debugln("Needs removal notification. Sending message...")
		chn.GetRemovalChannel() <- struct{}{}
		log.Debugln("Removal notified")
		chn.SetRemovalNotification(false)
	}
}
Beispiel #2
0
func waitForRemoval() {
	log.Debugln("Waiting for removal confirmation...")
	<-ch.GetRemovalChannel()
	log.Debugln("Remove complete")
}