You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(core): use Tick() instead of NewTicker() (#9548)
**Description**
- Replaces all uses of `time.NewTicker()` with `time.Tick()`. Since Go
1.23 the garbage collector can automatically clean up unreferenced
tickers. Therefore, we can just use `Tick()` instead of `NewTicker()`
and remove all `defer ticker.Stop()`.
- Removes all calls to stop a timer. Similar to tickers, since Go 1.23
timers can also be garbage collected automatically without calling
`timer.Stop()`.
- Remove two ticker member variables that were only used in a single
function.
- Changes the function `PollTillPassOrTimeout()` to use the `timeout`
argument
0 commit comments