MCPcopy
hub / github.com/Justineo/github-hovercard / queueTask

Function queueTask

src/hovercard.js:33–39  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

31 let taskQueue = []
32
33 function queueTask (fn) {
34 if (!taskQueue.length) {
35 scheduleRunTaskQueue()
36 }
37
38 taskQueue.push(fn)
39 }
40
41 function runTaskQueue (deadline) {
42 while (deadline.timeRemaining() > 0 && taskQueue.length) {

Callers 2

hovercard.jsFile · 0.70
extractFunction · 0.70

Calls 1

scheduleRunTaskQueueFunction · 0.70

Tested by

no test coverage detected