class Schedule{
constructor(maxtask){
this.list = [];
this.maxtask = maxtask;
this.worknum = 0;
};
add(...task){
this.list.push(...task)
};
start(){
for(let i = 0;i<this.maxtask;i++)
Promise实现并发
最新推荐文章于 2023-11-04 00:42:34 发布