package
module
Version:
v0.0.0-...-93b41fc
Opens a new window with list of versions in this module.
Published: Apr 9, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Kutex
Kutex = key + mutex
Import
import "github.com/4vn/kutex"
Usage
ku := kutex.New(1000)
userId := "gaia"
ku.Lock(userId)
// Do something
ku.Unlock(userId)
License
MIT
Documentation
¶
New creates a Kutex instance.
Lock waits to acquire lock.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.