Fork me on GitHub
摘要: 1,最大并行请求数固定,比如2个,方案是记录当前并行的数量curcount,利用递归持续发出请求 1 class asyncPromise { 2 constructor() { 3 this.maxcount = 2 // 最大数 4 this.curcont = 0 // 当前请求数 5 thi 阅读全文
posted @ 2021-05-23 20:24 我站在山顶上 阅读(64) 评论(0) 推荐(0) 编辑