Skip to content

Releases: vimeo/go-clocks

v1.3.0 -- Timer Support

18 Dec 21:07
428d684
Compare
Choose a tag to compare

What's Changed

  • timer: Add a NewTimer method to Clock by @dfinkel in #13

Full Changelog: v1.2.0...v1.3.0

v1.2.0 -- context timeout/deadline methods

06 Nov 20:19
3d6b352
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.2...v1.2.0

v1.1.2: Afterfunc synchronization bug fix

06 Jul 20:08
9f3ac86
Compare
Choose a tag to compare

What's Changed

  • fake: fix loop variable capture in setClockLocked by @dfinkel in #9

Full Changelog: v1.1.1...v1.1.2

fake.AfterFunc synchronization improvements

16 Sep 15:33
9d1cb19
Compare
Choose a tag to compare

Provide guarantees about AfterFunc goroutines having scheduled by the time fake.Clock.Advance and fake.Clock.SetClock have returned.

Similarly, add a sync.WaitGroup to track the completion of AfterFunc callbacks (and expose it via the new fake.Clock.WaitAfterFuncs()).

AfterFunc support

14 Sep 19:41
994ef67
Compare
Choose a tag to compare

Add an AfterFunc method to the Clock interface that returns a StopTimer implementation, and wraps time.AfterFunc in the default implementation.

Initial Release

11 Sep 14:33
f0ff105
Compare
Choose a tag to compare
Merge pull request #4 from vimeo/offset_separation

offset: move offset clock into its own subpackage