摘要: class Scheduler{ //正在执行的顺序 constructor(max){ //当前正在执行的任务个数 this._count = 0; //最大上限数 this._max = max; this._taskQueue = []; } add(promiseCreator){ cons 阅读全文
posted @ 2022-01-17 12:47 瑞瑞大人 阅读(43) 评论(0) 推荐(0) 编辑