promise-while
v1.0.1
Published
While loops for asynchronous javascript
Downloads
1,808
Readme
Promise While
While loops for asynchronous javascript
Usage
var promiseWhile = require('promise-while')(Promise)
promiseWhile(
function() {
return true // infinite loop
},
function() {
// return Promise
}
)
.then(function() {
// while loop completed, conditional returned false
})