# batch-async-error

> 批量进行异步请求，整合try catch捕获异常能力，使冗余的操作变的简单

Latest version **0.1.1** (published 2022-07-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install batch-async-error
pnpm add batch-async-error
yarn add batch-async-error
bun add batch-async-error
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2022-07-31 |
| First published | 2022-07-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jiapandong |
| Maintainers | jiapandong |
| Keywords | 异步, 错误, 嵌套请求, await, async, async-error, tool |

## Links

- npm: https://www.npmjs.com/package/batch-async-error
- Repository: https://github.com/PENTONCOS/batch-async-error
- Homepage: https://github.com/PENTONCOS/batch-async-error#readme
- Issues: https://github.com/PENTONCOS/batch-async-error/issues
- npm.io page: https://npm.io/package/batch-async-error

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2022-07-31
- 0.1.0 — 2022-07-31

## README

# batch-async-error
批量操作同步请求，并可捕获报错信息

## 安装
```js
npm install batch-async-error
```

## 使用方法
```js
import batchAsyncError from "batch-async-error";

const tasks = [requestA, requestB, requestC];

batchAsyncError(tasks).then(data => console.log(data));
```

## 参数说明
接受一个参数
- `tasks`: 异步任务队列

**tasks**

必须是一个数组，该数组中每一项为一个`函数`，返回`promise`对象

---
_Source: https://npm.io/package/batch-async-error · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
