From 1231ed7878fb8dfd651ba97f2b920edfa397dd8d Mon Sep 17 00:00:00 2001 From: Forbes Lindesay Date: Tue, 3 Jan 2023 13:27:05 +0000 Subject: [PATCH] docs: fix badge in README (#65) --- README.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ab69ac8..ce4742b 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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)