package
Version:
v2.0.0-...-e5a2643
Opens a new window with list of versions in this module.
Published: Aug 14, 2021
License: MIT
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
¶
type LockSet struct {
sync.RWMutex
Values map[string]void `json:"values" msgpack:"values"`
}
LockSet allows for a python-like set which allows for concurrent use.
Add adds a value to the LockSet.
Contains returns a boolean if the set contains a specific value.
Get returns the value of the LockSet.
Len returns the size of the LockSet.
Remove removes a value from the LockSet.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.