摘要: class SuperTask { constructor(parallelCount = 2) { this.parallelCount = parallelCount this.tasks = [] this.ruuingCount = 1 } add(task1) { return new P 阅读全文
posted @ 2024-04-29 16:07 howhy 阅读(34) 评论(0) 推荐(0) 编辑
摘要: function arrany(name) { let tasks = [] tasks.push(() => { console.log(name) }) function wait(duration) { tasks.push(() => new Promise(resolve => { set 阅读全文
posted @ 2024-04-29 15:00 howhy 阅读(8) 评论(0) 推荐(0) 编辑