Skip to content

Commit

Permalink
docs: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgd committed Nov 22, 2023
1 parent 86cfe02 commit 0ab3474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Calling `withLock` with the same `scope` and `key` will ensure that the callback
```typescript
import {withLock} from "lifecycle-utils";

const scope = {}; // can be reference to any object you like
const scope = {}; // can be a reference to any object you like
const startTime = Date.now();

async function doSomething(index: number): number {
Expand Down Expand Up @@ -55,7 +55,7 @@ Check whether a lock is currently active for the given `scope` and `key`.
```typescript
import {isLockActive} from "lifecycle-utils";

const scope = {}; // can be reference to any object you like
const scope = {}; // can be a reference to any object you like

const res = isLockActive(scope, "myKey");
console.log(res); // false
Expand All @@ -67,7 +67,7 @@ Acquire a lock for the given `scope` and `key`.
```typescript
import {acquireLock} from "lifecycle-utils";

const scope = {}; // can be reference to any object you like
const scope = {}; // can be a reference to any object you like

const activeLock = await acquireLock(scope, "myKey");
console.log("lock acquired");
Expand Down

0 comments on commit 0ab3474

Please sign in to comment.