clock icon indicating copy to clipboard operation
clock copied to clipboard

Allow resetting previously stopped tickers

Open cptpcrd opened this issue 3 years ago • 0 comments

Normal time.Tickers support being Stop()ed, then later restarted by calling Reset(). However, mocked clock.Tickers do not; once they are stopped they can never be restarted.

This PR fixes that behavior, and adds tests to ensure it isn't broken again.

cptpcrd avatar Sep 13 '22 13:09 cptpcrd