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?