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

/promise-locker/

    Package Sidebar

    Install

    npm i promise-locker

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • tenaciousmv