Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Introduce ticker Reset #25

Merged
merged 1 commit into from
Nov 24, 2020
Merged

Introduce ticker Reset #25

merged 1 commit into from
Nov 24, 2020

Conversation

mqnfred
Copy link
Contributor

@mqnfred mqnfred commented Nov 23, 2020

Go 1.15 introduces the Reset method on the time.Ticker object. I had a need for this, so I thought I'd share my branch.

It is a very simple take which makes no attempt at mocking the method, instead ignoring it in the mock implementation. I can of course make changes for Reset to be mocked as well, although I am curious what that would look like in terms of behavior.

@benbjohnson benbjohnson merged commit 307483a into benbjohnson:master Nov 24, 2020
@benbjohnson
Copy link
Owner

Thanks! 🎉

I'll release this as v1.1 so folks can still use the current version against <1.15.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants