コード例 #1
0
ファイル: event-man.go プロジェクト: elleFlorio/gru
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)
	}
}
コード例 #2
0
ファイル: remove.go プロジェクト: elleFlorio/gru
func waitForRemoval() {
	log.Debugln("Waiting for removal confirmation...")
	<-ch.GetRemovalChannel()
	log.Debugln("Remove complete")
}