Skip to content

Commit 26b712f

Browse files
committed
docs: add example with string duration
1 parent 030c2bf commit 26b712f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/content/docs/api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Acquire the lock. If the lock is already acquired, it will wait until it is rele
1616
const lock = verrou.createLock('key', '10s')
1717
await lock.acquire()
1818
await lock.acquire({ retry: { timeout: 1000 } })
19+
await lock.acquire({ retry: { timeout: '1s' } })
1920
```
2021

2122
Accept an optional object with the following properties:

0 commit comments

Comments
 (0)