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

github.com/vburenin/nsync

nsync package provides a set of primitives that are not provided by standard Go library. NamedMutex - a map of dynamically created mutexes by a referred name. OnceMutex - very similar to sync.Once, however, it is a mutex not a function wrapper. NamedOnceMutex - a map of dynamically created mutexes that can be acquired only once. However, once mutex unlocked it is removed from the map. So, next attempt to acquire this mutex will succeed. Semaphore - a semaphore primitive that can be acquired limited number of times. TryMutex - A mutex that provide ability to set a timeout to acquire a lock. ControlWaitGroup - a controlled goroutine executor that can limit the number concurrently running goroutines. Can help to solve a resource exhaustion problem. SyncFlag - an atomic flag that is wrapped by mutex. Mutex can be set/unset separately to prevent the flag from being set/unset.

Ecosystem
proxy.golang.org
Latest Release
v0.0.0-20160822015540-9a75d1c80410
over 9 years ago
Versions
1
Dependent Packages
9
Dependent Repos
32
Links
Registry proxy.golang.org
Source Repository
Docs Documentation
JSON API View JSON
CodeMeta codemeta.json
Package Details
PURL pkg:golang/github.com/vburenin/nsync
spec
License MIT
Namespace github.com/vburenin
First Release over 9 years ago
Last Synced 21 days ago
Repository
Stars 50 on GitHub
Forks 8 on GitHub
Docker Dependents 5
Docker Downloads 88
Rankings on proxy.golang.org
Overall Top 3.4%
Dependent packages Top 1.8%
Dependent repos Top 1.0%
Forks Top 6.9%
Docker downloads Top 1.7%