Skip to content

Commit

Permalink
update: readme doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant-fundwave committed Dec 11, 2023
1 parent 1b815e3 commit cae7a50
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,15 @@ console.log(fetchedQueue.getConcurrent()); // output: 5
fetchQueue.setDebug(true);
console.log(fetchedQueue.getDebug()); // output: true
```

```js
// start and pause queue
const fetchQueue = new FetchQueue(concurrent: 3, pauseQueueOnInit: true);
const customFetch = fetchQueue.getFetchMethod();

// ...some calls
fetchQueue.startQueue();

// ...some calls
fetcheQueue.pauseQueue();
```

0 comments on commit cae7a50

Please sign in to comment.