This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var q = require('queue-flow'); | |
| function scanAll (data, callback) { | |
| console.log('scanAll with data:', data); | |
| var localQ = q.ns(); | |
| var items = []; | |
| localQ('end') | |
| .each(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var q = require('queue-flow'); | |
| function scanAll (data, callback) { | |
| console.log('scanAll with data:', data); | |
| var counter = 0; | |
| var items = []; | |
| var end = q(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var q = require('queue-flow'); | |
| function asyncEmptyArray (args, callback) { | |
| console.log('empty array'); | |
| callback(null, []); | |
| } | |
| function poof (callback) { | |
| q([null]) | |
| .node(asyncEmptyArray, callback) |