Calls a function repeatedly if a condition returns false and until the condition returns true and then resolves the promise
$ npm install --save promise-
;let count = 0;;// ...let max = 0;;
action repeatedly if
false and until
true and then resolves the promise. Rejects if
action returns a promise that rejects or if an error is thrown anywhere.
Should return a boolean of whether to continue.
Action to run for each iteration.
You can return a promise and it will be handled.
ISC © Buster Collings