Skip to content

mvayngrib/promise-locker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promise-locker

your basic lock-on-an-id mechanism with promises

Usage

const locker = require('promise-locker')
const lock = locker()
const unlockA = lock('a')
// call unlockA() when done
// somewhere else
const unlockA = lock('a')
// will wait for previous unlock call

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published