Open zerkms opened 1 year ago
Given this valid code:
func (ja *jsonAuth) timer() { for { select { case <-ja.ctx.Done(): return case <-time.After(time.Minute): ja.tick() } } }
where time.After is run every loop iteration but on application shutdown, how would one fix the rule violation?
time.After
Given this valid code:
where
time.After
is run every loop iteration but on application shutdown, how would one fix the rule violation?