diff --git a/package.json b/package.json index 7f9493d..e1fbf8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jsdsl/semaphore", - "version": "1.3.0", + "version": "1.3.1", "description": "A Promise-based semaphore implementation.", "publishConfig": { "access": "public" diff --git a/readme.md b/readme.md index 9c1cc70..ac97dee 100644 --- a/readme.md +++ b/readme.md @@ -321,7 +321,7 @@ console.log(lock.getID()); //=> '1343ee064f8fd176b797a1ee5b84d862' #### `lock.waitForRelease()` -`lock.then(...)` returns a Promise that will resolve to the string ID of this lock once this lock is released. +`lock.waitForRelease(...)` returns a Promise that will resolve to the string ID of this lock once this lock is released. ```typescript import { Semaphore, SemaphoreLock } from "@jsdsl/semaphore";