proxy.golang.org : github.com/Jille/easymutex
Package easymutex is a small wrapper around sync.Locker that allows you to always defer the unlock, even if you might unlock sooner. The struct is simply a mutex with a boolean. The boolean knows if we have the lock and skips Lock/Unlock if we already/don't have the lock.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21jille/easymutex
Keywords:
golang
, golang-library
License: BSD-2-Clause
Latest release: over 1 year ago
First release: over 1 year ago
Namespace: github.com/Jille
Dependent packages: 2
Stars: 0 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 5 hours ago