README
README
var q = new Queue(function(item, callback) { // Do something with the item
callback(); }, concurrency);
q.drain = function() { // All items have been iterated over };
q.push(items);
Simple queue
<script type="module">
import dqueue from 'https://cdn.skypack.dev/dqueue';
</script>
var q = new Queue(function(item, callback) { // Do something with the item
callback(); }, concurrency);
q.drain = function() { // All items have been iterated over };
q.push(items);