MCPcopy Index your code
hub / github.com/dataease/SQLBot / drainQueue

Function drainQueue

frontend/public/swagger-ui-bundle.js:24516–24541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24514 w && u && ((w = !1), u.length ? (_ = u.concat(_)) : (x = -1), _.length && drainQueue())
24515 }
24516 function drainQueue() {
24517 if (!w) {
24518 var s = runTimeout(cleanUpNextTick)
24519 w = !0
24520 for (var o = _.length; o; ) {
24521 for (u = _, _ = []; ++x < o; ) u && u[x].run()
24522 ;((x = -1), (o = _.length))
24523 }
24524 ;((u = null),
24525 (w = !1),
24526 (function runClearTimeout(s) {
24527 if (i === clearTimeout) return clearTimeout(s)
24528 if ((i === defaultClearTimeout || !i) && clearTimeout)
24529 return ((i = clearTimeout), clearTimeout(s))
24530 try {
24531 return i(s)
24532 } catch (o) {
24533 try {
24534 return i.call(null, s)
24535 } catch (o) {
24536 return i.call(this, s)
24537 }
24538 }
24539 })(s))
24540 }
24541 }
24542 function Item(s, o) {
24543 ;((this.fun = s), (this.array = o))
24544 }

Callers 1

cleanUpNextTickFunction · 0.85

Calls 3

runTimeoutFunction · 0.85
runMethod · 0.80
iFunction · 0.70

Tested by

no test coverage detected