Closed htiennv closed 6 days ago
Sorry for bothering you, but what's the benefit of the replacement?
The Ticker
will fire multiple times without having to be explicitly Reset
to do so.
I don't think ticker is correct here. We don't want to fire events a regularly scheduled intervals. In the backoff, the goal is to wait
freezerRecheckInterval
time before resuming execution. To do this, should prefer a timer.The code there actually seems incorrect, I believe the
timer.Reset
should be above theselect
in thebackoff
if statement.
Yeah, Thanks @lightclient for your review.
Sorry for bothering you, but what's the benefit of the replacement?