(q)
| 107 | } |
| 108 | |
| 109 | function maybeNotify(q) { |
| 110 | if (!q._active && q._call) { |
| 111 | var d = q._data; |
| 112 | q._data = undefined; // allow gc |
| 113 | q._call(q._error, d); |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | export default function queue(concurrency) { |
| 118 | if (concurrency == null) concurrency = Infinity; |