MCPcopy Index your code
hub / github.com/d3/d3-queue / poke

Function poke

src/queue.js:49–57  ·  view source on GitHub ↗
(q)

Source from the content-addressed store, hash-verified

47};
48
49function poke(q) {
50 if (!q._start) {
51 try { start(q); } // let the current task complete
52 catch (e) {
53 if (q._tasks[q._ended + q._active - 1]) abort(q, e); // task errored synchronously
54 else if (!q._data) throw e; // await callback errored synchronously
55 }
56 }
57}
58
59function start(q) {
60 while (q._start = q._waiting && q._active < q._size) {

Callers 2

queue.jsFile · 0.85
endFunction · 0.85

Calls 2

startFunction · 0.85
abortFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…