MCPcopy Create free account
hub / github.com/d3/d3-queue / abort

Function abort

src/queue.js:89–107  ·  view source on GitHub ↗
(q, e)

Source from the content-addressed store, hash-verified

87}
88
89function abort(q, e) {
90 var i = q._tasks.length, t;
91 q._error = e; // ignore active callbacks
92 q._data = undefined; // allow gc
93 q._waiting = NaN; // prevent starting
94
95 while (--i >= 0) {
96 if (t = q._tasks[i]) {
97 q._tasks[i] = null;
98 if (t.abort) {
99 try { t.abort(); }
100 catch (e) { /* ignore */ }
101 }
102 }
103 }
104
105 q._active = NaN; // allow notification
106 maybeNotify(q);
107}
108
109function maybeNotify(q) {
110 if (!q._active && q._call) {

Callers 3

queue.jsFile · 0.85
pokeFunction · 0.85
endFunction · 0.85

Calls 1

maybeNotifyFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…