// EveryDay returns a channel which
// output a time.Time by your setting
EveryDay returns a channel which
output a time.Time by your setting
// EveryDay returns a channel which // output a time . Time by your setting
func (s *Simulator) EveryDay(hour, minute, second int) <-chan time.Time {
	s.Lock()
	defer s.Unlock()
	c := make(chan time.Time, 1)
	run := func(t *task) *task {
		c <- s.now 
		t.deadline = t.deadline.Add(24 * time.Hour)
		return t
	}
	task := newTask(nextDayTime(s.now, hour, minute, second), run)
	s.accept(task)
	return c
}
func ( s * Simulator ) EveryDay ( hour , minute , second int ) <- chan time . Time { s . Lock ( ) defer s . Unlock ( ) c := make ( chan time . Time , 1 ) run := func ( t * task ) * task { c <- s . now t . deadline = t . deadline . Add ( 24 * time . Hour ) return t } task := newTask ( nextDayTime ( s . now , hour , minute , second ) , run ) s . accept ( task ) return c }
EveryDay returns a channel which
output a time.Time by your setting
EveryDay returns a channel which output a time . Time by your setting
// 必须要送达