whiler
Simple endless cycle. Like while(true) but async.
Install
npm i whiler
Usage
Takes a function as a parameter and runs it in loop while function return a truthy value or promise of a truthy value. Resolves when function return a falsy value or promise of a falsy value. Rejects when function throws or rejects.
const whiler = ;;
License
MIT