Skip to content

Commit

Permalink
docs: fix badge in README (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbesLindesay authored Jan 3, 2023
1 parent 38a21b2 commit 1231ed7
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Throttle the parallelism of an asynchronous, promise returning, function / funct

[Professionally supported throat is now available](https://tidelift.com/subscription/pkg/npm-throat?utm_source=npm-throat&utm_medium=referral&utm_campaign=readme)

[![Build Status](https://img.shields.io/github/workflow/status/ForbesLindesay/throat/Test/master?style=for-the-badge)](https://github.com/ForbesLindesay/throat/actions?query=workflow%3ATest+branch%3Amaster)
[![Build Status](https://img.shields.io/github/actions/workflow/status/ForbesLindesay/throat/test.yml?branch=master&style=for-the-badge)](https://github.com/ForbesLindesay/throat/actions/workflows/test.yml?query=branch%3Amaster)
[![Coveralls github branch](https://img.shields.io/coveralls/github/ForbesLindesay/throat/master?color=brightgreen&style=for-the-badge)](https://coveralls.io/github/ForbesLindesay/throat)
[![Rolling Versions](https://img.shields.io/badge/Rolling%20Versions-Enabled-brightgreen?style=for-the-badge)](https://rollingversions.com/ForbesLindesay/throat)
[![NPM version](https://img.shields.io/npm/v/throat?style=for-the-badge)](https://www.npmjs.com/package/throat)
Expand All @@ -24,11 +24,21 @@ Example, only 2 of the following functions will execute at any one time:
```js
const throat = require('throat')(2);

const resA = throat(async () => { /* async stuff... */ });
const resB = throat(async () => { /* async stuff... */ });
const resC = throat(async () => { /* async stuff... */ });
const resD = throat(async () => { /* async stuff... */ });
const resE = throat(async () => { /* async stuff... */ });
const resA = throat(async () => {
/* async stuff... */
});
const resB = throat(async () => {
/* async stuff... */
});
const resC = throat(async () => {
/* async stuff... */
});
const resD = throat(async () => {
/* async stuff... */
});
const resE = throat(async () => {
/* async stuff... */
});
```

### throat(concurrency, worker)
Expand Down

0 comments on commit 1231ed7

Please sign in to comment.