package sample

func Wait(ch <-chan struct{}, tick <-chan struct{}) {
	for {
		select {
		case <-ch:
			return
		case <-tick:
			return
		}
	}
}