Skip to content

Commit

Permalink
docs: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nanianlisao committed Mar 15, 2024
1 parent a1da8b6 commit 9a0188e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Clear the internal cache of locked ports.
This can be useful when you want the results to be unaffected by previous calls.
Please note that clearing the cache could cause race conditions.
@example
```
import getPort, {clearLockedPorts} from 'get-port';
Expand Down
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ The last port of the range. Must be in the range `1024`...`65535` and must be gr

### clearLockedPorts()

Clear the internal cache of locked ports when you want your results to be unaffected by previous calls.
Clear the internal cache of locked ports.

This can be useful when you want the results to be unaffected by previous calls.

Please note that clearing the cache could cause race conditions.

## Beware

Expand Down

0 comments on commit 9a0188e

Please sign in to comment.