Seth Hoenig
c1e033c8c6
cleanup: prevent leaks from time.After
...
This PR replaces use of time.After with a safe helper function
that creates a time.Timer to use instead. The new function returns
both a time.Timer and a Stop function that the caller must handle.
Unlike time.NewTimer, the helper function does not panic if the duration
set is <= 0.
2022-02-02 14:32:26 -06:00
..
2020-05-26 11:04:04 -04:00
2020-12-10 07:29:18 -08:00
2021-05-05 10:27:58 -07:00
2022-01-10 15:35:19 -05:00
2021-10-01 10:14:28 -04:00
2021-12-21 13:31:34 -05:00
2021-03-31 15:59:01 -04:00
2020-12-09 11:05:18 -08:00
2020-10-12 08:47:05 -04:00
2021-04-15 10:39:11 -04:00
2021-10-01 10:14:28 -04:00
2021-12-21 13:31:34 -05:00
2021-06-09 11:00:39 -04:00
2020-12-10 07:29:18 -08:00
2021-10-15 12:53:25 -07:00
2021-10-19 10:49:07 -07:00
2021-10-01 10:14:28 -04:00
2021-04-15 10:39:11 -04:00
2021-12-21 13:31:34 -05:00
2020-05-26 11:04:04 -04:00
2021-12-21 13:31:34 -05:00
2021-05-05 10:27:58 -07:00
2021-09-16 08:13:09 +02:00
2021-09-16 08:13:09 +02:00
2021-02-02 22:54:23 -05:00
2021-02-02 22:54:23 -05:00
2018-11-19 22:59:15 -05:00
2020-12-09 11:05:18 -08:00
2020-05-26 21:24:55 -04:00
2019-10-18 15:31:13 -04:00
2018-11-19 22:59:15 -05:00
2022-01-10 15:35:19 -05:00
2022-02-02 14:32:26 -06:00
2019-04-25 09:02:44 -04:00
2021-10-01 10:14:28 -04:00
2021-10-01 10:14:28 -04:00
2021-07-22 22:27:29 +02:00
2019-08-01 19:54:08 +03:00