package
Version:
v4.4.0+incompatible
Opens a new window with list of versions in this module.
Published: Jan 18, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Locker wraps a RWMutex with a nicer api.
func (locker *Locker) Lock() func()
Lock wraps RWMutex.Lock, returning a function to unlock. Usage: `defer locker.Lock()()`.
func (locker *Locker) RLock() func()
RLock wraps RWMutex.RLock, returning a function to unlock. Usage: `defer locker.RLock()()`.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.