Skip to content

Commit 010f0ba

Browse files
committed
Fixed typo in readme.md.
1 parent 22d57bb commit 010f0ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jsdsl/semaphore",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "A Promise-based semaphore implementation.",
55
"publishConfig": {
66
"access": "public"

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ console.log(lock.getID()); //=> '1343ee064f8fd176b797a1ee5b84d862'
321321

322322
#### `lock.waitForRelease()`
323323

324-
`lock.then(...)` returns a Promise that will resolve to the string ID of this lock once this lock is released.
324+
`lock.waitForRelease(...)` returns a Promise that will resolve to the string ID of this lock once this lock is released.
325325

326326
```typescript
327327
import { Semaphore, SemaphoreLock } from "@jsdsl/semaphore";

0 commit comments

Comments
 (0)