**Versions:** node 14.2.0 advisory-lock 1.1.1 **Code:** ``` const advisoryLock = require("advisory-lock").default; const databaseUri = "postgres://db_user:db_password@localhost:5432/postgres" async function lock() { const mutex = advisoryLock(databaseUri)("testLock"); await mutex.tryLock(); } lock() .then(() => { console.log("Success!"); }) .catch((e) => { console.log("Failure!"); }); ``` **Expected:** Either "Success!" or "Failure!" is printed to the console. **What actually happens:** Nothing is printed. Node process exits with status code 0 when mutex.tryLock is called. **Why is it an issue:** Thisworks as expected in node version prior to 14.0.0.
Versions:
node 14.2.0
advisory-lock 1.1.1
Code:
Expected: Either "Success!" or "Failure!" is printed to the console.
What actually happens: Nothing is printed. Node process exits with status code 0 when mutex.tryLock is called.
Why is it an issue: Thisworks as expected in node version prior to 14.0.0.