batch-async-error
0.1.1 • Public • Published
批量操作同步请求,并可捕获报错信息
npm install batch-async-error
import batchAsyncError from "batch-async-error";
const tasks = [requestA, requestB, requestC];
batchAsyncError(tasks).then(data => console.log(data));
接受一个参数
tasks
必须是一个数组,该数组中每一项为一个函数
,返回promise
对象
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
0.1.1 | 3 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
0.1.1 | 3 | |
0.1.0 | 0 | |
Package Sidebar
Install
Weekly Downloads