An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 7.7% on proxy.golang.org
Top 2.2% dependent packages on proxy.golang.org
Top 2.5% dependent repos on proxy.golang.org

proxy.golang.org : github.com/vimeo/go-clocks

Package clocks provides the Clock interface and a default implementations: the defaultClock implementation (returned by DefaultClock()) defaultClock should always be used within production, as it is a trivial wrapper around the real clock-derived functions in the time package of the Go standard library. In the fake subpackage there is a fake.Clock (created by fake.NewClock()) fake.Clock is present for use in tests, with some helpers for useful synchronization, such as AwaitSleepers() which lets a test goroutine block until some number of other goroutines are sleeping. See the documentation on the individual methods of fake.Clock for more specific documentation. The offset subpackage contains an offset.Clock type which simply adds a constant offset to any interactions with an absolute time. This type is most useful for simulating clock-skew/unsynchronization in combination with the fake-clock.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/vimeo/go-clocks
License: Apache-2.0
Latest release: over 1 year ago
First release: almost 5 years ago
Namespace: github.com/vimeo
Dependent packages: 6
Dependent repositories: 4
Stars: 5 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago

    Loading...
    Readme
    Loading...