Skip to content

Commit

Permalink
does(README): download stack example
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Jul 12, 2024
1 parent ba7fbf3 commit d668e6c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,10 +252,14 @@ In some edge cases, the re-try mechanism may give the illusion that the download

To debug this, disable the re-try mechanism:

```json
retry: {
retries: 0
}
```js
const downloader = await downloadFile({
url: 'https://example.com/file.large',
directory: './this/path',
retry: {
retries: 0
}
});
```
### Listening to events

Expand Down

0 comments on commit d668e6c

Please sign in to comment.