promise-locker
your basic lock-on-an-id mechanism with promises
Usage
const locker = const lock = const unlockA = // call unlockA() when done// somewhere elseconst unlockA = // will wait for previous unlock call
your basic lock-on-an-id mechanism with promises
const locker = const lock = const unlockA = // call unlockA() when done// somewhere elseconst unlockA = // will wait for previous unlock call
npm i promise-locker
0
1.0.0
MIT