An asynchronous do-while-like function
npm install dank-do-whiledank-do-while
---------------
An asynchronous do-while-like function for node
install
-------
``bash`
npm install dank-do-while
method
------
eachFunction will be called once initially and then again
for each time that next(truthy) is called
Signature is function(next)
doneFunction will be called once when next(falsy) is called
concurrency the number of concurrent eachFunction's that may be executed
example
-------
`javascript
import { doWhile } from 'dank-do-while';
doWhile(function (next) {
someAsyncFunction(function (err, result) {
return next(result !== 'done');
});
}, function () {
console.log('done');
});
``