摘要:
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
阅读(96)
评论(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
阅读(25)
评论(0)
推荐(0)

浙公网安备 33010602011771号