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

Top 9.7% on proxy.golang.org

proxy.golang.org : github.com/joeycumines/go-smartpoll

Package smartpoll offers dynamic, reactive scheduling for synchronized polling of multiple data points. See the README for the rationale, use cases, and examples. The purpose of this implementation is to make it as easy as possible to implement a "control loop", which directly manages the scheduling of polling operations, and propagates and/or transforms the results. It achieves this by running all such operations, termed "hooks", within a single goroutine. The implementation consists of a Scheduler, which is configured with a set of Task values, with a corresponding identifying key, and optionally a set of Hook values, with which each receive from a corresponding channel. Each Task consists of a two-stage, higher-order function. The first stage is performed in its own goroutine, while the second stage is synchronized with the main loop. Channels for each custom Hook are selected alongside the logic for scheduling and handling the results of each Task.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/joeycumines/go-smartpoll
License: MIT
Latest release: 9 months ago
First release: over 1 year ago
Namespace: github.com/joeycumines
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 7 days ago

    Loading...
    Readme
    Loading...