Skip to content

oyato/namedlocker

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

namedlocker

Package namedlocker implements in-memory named locks. See https://oya.to/namedlocker for docs.

Install

go get oya.to/namedlocker

Usage

package test


func Example() {
    sto := Store{}
    sto.Lock("my-key")
    defer sto.Unlock("my-key")

    // do some work...
}

About

namedlocker implements in-memory named locks.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages