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

Introduce ticker Reset#25

Merged
benbjohnson merged 1 commit intobenbjohnson:masterfrom
mqnfred:master
Nov 24, 2020
Merged

Introduce ticker Reset#25
benbjohnson merged 1 commit intobenbjohnson:masterfrom
mqnfred:master

Conversation

@mqnfred
Copy link
Copy Markdown
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
Copy Markdown
Owner

Thanks! 🎉

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants