Ecosyste.ms: Packages

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

proxy.golang.org : gitlab.com/SiaPrime/threadgroup

Package threadgroup provides a utility for performing organized clean shutdown and quick shutdown of long running groups of threads, such as networking threads, background threads, or resources like databases. The OnStop and AfterStop functions are helpers which enable shutdown code to be inlined with resource allocation, similar to defer. The difference is that `OnStop` and `AfterStop` will be called following tg.Stop, instead of when the parent function goes out of scope.

Registry - Source - Documentation - JSON
purl: pkg:golang/gitlab.com/%21sia%21prime/threadgroup
License: MIT
Latest release: almost 6 years ago
First release: almost 6 years ago
Namespace: gitlab.com/SiaPrime
Last synced: 7 days ago

    Loading...
    Readme
    Loading...