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

proxy.golang.org : github.com/mccutchen/speculatively

Package speculatively provides a simple mechanism to speculatively execute a task in parallel only after some initial timeout has elapsed. Example demonstrates use of speculatively.Do to execute an expensive task one or more times in parallel. Every time the task is executed, it will wait half as long before returning. Given an operation timeout of 100ms and an initial task latency of 256ms, the first execution of our expensive task will always time out. Every 20ms, the task will be executed again, until it returns successfully or the timeout expires. The overall timings of each execution look like this:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/mccutchen/speculatively
Keywords: golang , speculative-execution
License: MIT
Latest release: over 1 year ago
First release: about 6 years ago
Namespace: github.com/mccutchen
Stars: 9 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 16 hours ago

    Loading...
    Readme
    Loading...