promise-do-until

Calls a function repeatedly until a condition returns true and then resolves the promise

Browse on unpkg