promise-locker

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i promise-locker

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • tenaciousmv