batch-async-error

0.1.1 • Public • Published

batch-async-error

批量操作同步请求,并可捕获报错信息

安装

npm install batch-async-error

使用方法

import batchAsyncError from "batch-async-error";

const tasks = [requestA, requestB, requestC];

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

参数说明

接受一个参数

  • tasks: 异步任务队列

tasks

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.13latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.13
0.1.00

Package Sidebar

Install

npm i batch-async-error

Weekly Downloads

2

Version

0.1.1

License

ISC

Unpacked Size

2.46 kB

Total Files

3

Last publish

Collaborators

  • jiapandong