Runs the callback function every specified interval and returns a Promise that resolves when the callback returns
truthy value.
Pro-tip: Value returned from the callback is returned via resolved Promise. If you want to pass back falsy value then
wrap your potential return value with an object or array.
Runs the callback function every specified interval and returns a Promise that resolves when the callback returns truthy value. Pro-tip: Value returned from the callback is returned via resolved Promise. If you want to pass back falsy value then wrap your potential return value with an object or array.