promise-locker
v1.0.0
Published
your basic lock-on-an-id mechanism with promises
Downloads
4
Readme
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