1.0.0 • Published 7 years ago
promise-locker v1.0.0
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
1.0.0
7 years ago