src/lock.js
async function release(key) {
    const previousLocks = LOCKS_MAP.get(key) || [];
    const locksLength = previousLocks.length;

    log(
      'debug',
      `Releasing the lock on ${key} (queue length was ${locksLength})`,
    );
    previousLocks.pop().release();
  }
async function release(key) {
    const previousLocks = LOCKS_MAP.get(key) || [];
    const locksLength = previousLocks.length;

    log(
      'debug',
      `Releasing the lock on ${key} (queue length was ${locksLength})`,
    );
    previousLocks.pop().release();
  }
async function release ( key ) { const previousLocks = LOCKS_MAP . get ( key ) || [ ] ; const locksLength = previousLocks . length ; log ( 'debug' , ` ${ key } ${ locksLength } ` , ) ; previousLocks . pop ( ) . release ( ) ; }
Release the lock on the given resource key
@param  {String}   key  A unique key for the resource to release
@return {void}
Release the lock on the given resource key