func()

in timer.go [44:58]


func (m *mockTimer) Reset(d time.Duration) bool {
	var wasActive bool
	m.lock <- struct{}{}
	defer func() { <-m.lock }()

	wasActive, m.active = m.active, true
	m.trigger = m.clock.After(d)

	if wasActive {
		m.release <- true
	}
	go m.wait()

	return wasActive
}