MCPcopy Create free account
hub / github.com/course-dasheng/fe-algorithm / next

Function next

interview/limit.js:13–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 let activeCount = 0
12
13 const next = ()=>{
14 //下一个任务
15 activeCount--
16 if(queue.length>0){
17 queue.shift()()
18 }
19 }
20 const run = async (fn,resolve,args)=>{
21 //执行一个函数
22 activeCount++

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected