throttled queue:将Javascript Promise映射到给定的项目数组并能够限制一次创建的Promises的数量 源码
节流队列 将Javascript Promise映射到给定的项目数组,并能够在任何给定时间限制活动Promises的数量。 样品用法: ThrottledQueue(["a", "b", "c", "d", "e"], (item, resolve, reject) => { setTimeout(() => { resolve(item); }, 2000); }, 2).then(results => { console.log(results); }); var http = require("http"); const urls = [ "https://run.mocky.io/v3/7b038025-fc5f-4564-90eb-4373f0721822?mocky-delay=2s&x=1", "https://run
文件列表
throttled-queue-main.zip
(预估有个7文件)
throttled-queue-main
examples
sample-01.js
212B
sample-02.js
800B
LICENSE
34KB
README.md
1KB
index.d.ts
242B
index.js
2KB
package.json
484B
暂无评论