没有合适的资源?快使用搜索试试~ 我知道了~
p-series:串联运行承诺返回和异步功能
共12个文件
js:2个
ts:2个
md:1个
需积分: 5 0 下载量 128 浏览量
2021-05-26
07:54:43
上传
评论
收藏 5KB ZIP 举报
温馨提示
p系列 串联运行承诺返回和异步功能 如果您在每个函数中都执行相同的工作,请改用 。 请参阅以获取并发副本。 安装 $ npm install p-series 用法 const pSeries = require ( 'p-series' ) ; const got = require ( 'got' ) ; ( async ( ) => { const tasks = [ ( ) => got ( 'https://sindresorhus.com' ) , ( ) => checkSomething ( ) , ( ) => doSomethingElse ( ) ] ; console . log ( await pSeries ( tasks ) ) ; } ) ( ) ; 原料药 pSeries(任务) 返回一个Promise ,当通过调用tasks中的
资源推荐
资源详情
资源评论
收起资源包目录
p-series-main.zip (12个子文件)
p-series-main
index.js 554B
test.js 541B
package.json 857B
index.test-d.ts 299B
readme.md 1KB
.github
workflows
main.yml 450B
license 1KB
index.d.ts 1KB
.gitignore 23B
.npmrc 19B
.editorconfig 175B
.gitattributes 19B
共 12 条
- 1
资源评论
世界在你心里
- 粉丝: 25
- 资源: 4574
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功