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

Top 9.0% on proxy.golang.org

proxy.golang.org : github.com/joshlf/fsched

Package fsched implements a sequential scheduler for function callbacks. The scheduler keeps track of the current time (different from real time). Each call to CallNext fast-forwards to the timestamp on the earliest event, and executes the associated callback function. Note that the scheduler's time is arbitrary and must only be internally consistent; it is unrelated to any real sense of time (ie, clock cycles, seconds since epoch, etc). While the scheduler interface is generic, it is designed to be used for simulating highly-parallel processes where accurate time is important, but the simulation is too processor-intensive to be run in real time. Note that the scheduler is NOT thread-safe. The intended usage of the scheduler is to call CallNext sequentially. In particular, this allows scheduled callbacks to safely interact with the scheduler, for example to schedule more events.

Registry - Source - Documentation - JSON - codemeta.json
purl: pkg:golang/github.com/joshlf/fsched
License: BSD-3-Clause
Latest release: over 11 years ago
First release: over 11 years ago
Namespace: github.com/joshlf
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 2 months ago

    Loading...
    Readme
    Loading...